Repository navigation
feat: retain scoped task context and portable saved records - #523
Merged
Merged
Conversation
Keep optional body-free task context receipts with their originating turn, validate saved references and capture identities, and preserve legacy records without inventing provenance. Retain returned Note revisions independently of hash availability.
Capture project file and Note revisions under shared limits, bind explicit selections to main-owned drafts, and retain honest provenance when first sends create worktrees. Keep later IPC, pending-send and UI integration explicit.
Use the real runner for scoped draft selection, refuse the offline Store demo, and revoke pending captures on project or thread removal while retaining accepted selections if removal fails.
Bind first-thread creation in main, preserve selections after failed user writes, consume draft nonces after durable admission, and pass only selected references through existing CLI input. Refuse malformed or spent bindings and retain authoritative stored context for repeated metadata reads.
Store main-owned selection metadata with pending messages, bind target workspace observations once, and admit the exact context into one durable user item. Preserve legacy message limits with separate bounded context budgets and retain mismatched recovery records. Validation: full build and typecheck; 2636 unit passes, 36 skips; two additional durable-user recovery cases validated in the focused suite (35 passes, one skip). Full CF-7 remains in progress.
Add main-owned candidate listing for current file and Notes metadata, recheck draft scope after asynchronous enumeration, and expose bounded truncation. Register both command paths with desktop local-only authority and explicit Store unavailability. Validation: full build and typecheck; 46 focused passes. Exact byte-boundary regression retained. Full CF-7 and unsent draft recovery remain in progress.
Persist main-owned selections before acknowledgment, reconcile prepared user and pending destinations after restart, and revoke obsolete document bindings. Preserve original metadata during uncertain replacement and retain first-thread creation identity without rerunning uncertain worktree scripts. Use semantic owner identities and cancel held captures on Stop. Strengthen service tests to require an actual durable destination before retirement. Validation: full build, typecheck and unit suite; 2663 passes, 36 skips, no failures or cancellations. CF-7 remains in progress.
Preflight a lower bound of logical selection metadata before reads and hashes, while retaining the exact post-capture limit. Deduplicate targets without imposing a raw input ceiling and build selection maps without repeated target scans. Validation: build and typecheck; 76 focused passes, plus eight candidate tests covering independent Notes count/byte bounds and foreign file exclusion. Previous integrated recovery suite passed2663 tests with36 skips. Full CF-7 remains in progress.
Add metadata-only observers for successful current, historical and file reads. Snapshot returned bodies before asynchronous hashing, preserve each returned version when hashes are unavailable, and recheck scope and active identity before acknowledgment. Rotate observed leases with independent public identities while retaining legacy stable-route behavior. Validate the distinct Notes read phase against its source, method and returned revision. Validation: build, typecheck and177 focused passes with no skips. Runner persistence and native operation integration remain in progress.
Bind runtime receipts to the accepted attempt and persist UserItem metadata before publication. Share capture scheduling, retain unavailable receipts across Stop and recovery, and preserve final Codex patch paths.
Derive normalized targets from accepted native arguments and retain those identities until completion. Keep bounded transcript previews independent of provenance paths.
Add a metadata-only proposal lease with scoped replay-safe acceptance, durable model roles and opaque reference IDs. Rebind loaded Codex metadata connections and configure the isolated Claude proposal allowlist.
Redact known connection values across native streams and terminal cleanup, seal receipt admission at backend termination, and preserve actual native file identities independently of display text. Build, typecheck and full local unit suite passed. Native-provider, rendered UI and complete task-context acceptance remain separate gates.
Record static field availability before credential masking in Claude and Codex adapters, then exclude altered targets and relative paths under altered working directories from context observation and hashing. Preserve public targets in mixed operations and genuine literal redaction-marker filenames. Build, typecheck and full local tests passed. Native resume, rendered UI and full task-context acceptance remain separate gates.
Omit altered native identities, preserve exact private transport IDs only for fixed protocol refusals, and keep a body-free fence against approval of credential-bearing patches until their turn ends. Withdraw private Claude questions before the broker and suppress long terminal key prefixes. Public actions and literal redaction-marker identities retain their behavior. Build, typecheck and full local tests passed; native resume and rendered acceptance remain separate gates.
Persist strict body-free setup receipts through Retry and explicit Save, keep ACP and local routes unavailable, and require Claude connection status rather than argv alone. Preserve legacy absence, native pending-send selection proofs, and main-owned availability limits. Capability persistence failures stop the attempt visibly while retaining native stop uncertainty. Full build, typechecks and repository tests passed; app wiring and native resume/UI qualification remain pending.
Stop only the owning attempt when native or transactional context publication fails, retain its original error and native exit uncertainty, and preserve bounded sanitized shutdown diagnostics. Register already-loaded account and local credentials in the main-only private-value guard before coding execution so independent proposal and Notes provenance cannot retain them. Registration adds no credential-store reads. Full build, typechecks and repository tests passed, and both original isolated reproductions now pass. Main entry-point wiring and supported-native/UI acceptance remain pending.
Own the proposal service in main, inject it into the real runner, and dispose it through the shared shutdown drain. Exercise fresh and resumed synthetic Claude turns through Electron, lease revocation, and shutdown; align existing drain and Notes expiry tests with the current service contracts.
Keep check results, explicitly confirmed relevance and timed file observations separate. Preserve native item identity, scope and plan revision, reject incomplete or superseded coverage, and retain historical saved-record wording. Wire scoped commands into both main paths and use the conservative projection in live and saved views.
Bind project and thread composers to main-owned context drafts across native and browser Send flows. Keep scoped Notes preview, relevance and check coverage explicit; retain actual source links, timed metadata, bounded expansion and frozen saved views. Preserve held bindings across project switches and restrict editing to supported local surfaces.
Freeze saved context and verification evidence, provide full retained-record copy, and project private or unclassified automatic command text without altering genuine native evidence. Preserve receipt identity, recovery artifacts and readonly reopen behavior. Repair canonical check scope, compact composer layout and thread-first demo send ownership; retain native/provider/human acceptance gates.
BunsDev
enabled auto-merge
November 14, 2026 01:00
Reproduce pending controlled-checkbox state with held genuine IPC, prove accepted and stale paths against saved thread JSON, and preserve Retry/Save/reopen assertions.
Resolve the hosted quality comment and record the failed local window-position qualification without changing test or OS settings.
Code coverage overviewLanguages: TypeScript TypeScript / code-coverage-agent
View coverage of the 10 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Retain explicit project file and Notes selections, independent model relevance proposals, scoped native observations and timed revision evidence with each task. Checks retain actual source identities and explicit reference mappings; their labels describe matching timed observations without claiming which bytes the process consumed. Context controls preserve first-send/reload recovery and remain separate from execution permissions.
Save to Notes now freezes that evidence, offers bounded references plus a full saved-record copy, and reopens without rerunning tools or refreshing source files. Portable records omit private or unclassified automatic command text across every saved command-bearing surface while retaining results, provenance and distinct receipt identities. Legacy saved views and copies use a detached projection without rewriting Notes, snapshots or history. Partial Save failures identify retained recovery artifacts.
The completion branch also fixes canonical check scope through directory symlinks, readonly check mappings, narrow-composer layout, and the browser demo's hidden-draft context owner during a thread follow-up.
The confirmation fixture now waits for each authoritative checked state, exact main revision and confirmed target set before the next interaction. Held real-renderer tests cover pending state, genuine acceptance, stale-revision refusal, no automatic resend and saved-thread JSON, while preserving Retry, native-item focus, Save and immutable reopen assertions. These controls reproduce the asynchronous checkbox mechanism; the first hosted trace lacks enough post-click evidence to prove its original cause. The hosted unused-helper comment is also resolved.
This advances #280 and #281. Their required supported-provider workflow and human saved-Note/Task-view acceptance remain open. Synthetic CLI tests, local checks and hosted CI do not establish those acceptance gates.
Validation on signed
398f52307bf22f6ed228509e2b3ba3035fe1b4e2: full build, typechecking and unit suites passed (2,852 passed, 36 skipped); focused context E2E passed 12 cases, site 8 and web 4, with no retries. All 1,430 tracked-source hashes stayed unchanged. All 24 branch commits have verified approved source signatures. The compiled cleanup differs only by the unused declaration and renderer bytes are unchanged. See the criterion receipt for retained evidence and acceptance limits.Broad local E2E on preceding signed
d036ddafailed: 545 passed, 17 unchanged gated skips and one window-position relaunch assertion (expected(40, 60), received(1079, 1215), size preserved). Site/web did not run in that failed invocation. A read-only check found the intended private Electron host assigned to the same macOS Desktop as the original host; its assignment provenance is unknown. The failure and trace are retained, OS settings and assertions were not changed, and this is not a complete local E2E pass. Fresh complete hosted CI on the updated source and protected merge-queue checks remain required before merge.