Repository navigation
fix(chat): forward workspace context to typed subagent results - #1486
Merged
reason-machines[bot] merged 28 commits intoNov 18, 2026
Merged
Conversation
…t-2 comment GAP-CHAT-01: nativePathToFile was using fetch(convertFileSrc(path)) which silently fails on arbitrary paths in a signed build: the CSP connect-src only allows ipc:/http://ipc.localhost (not asset:), and no assetProtocol capability scope is configured in default.json. Switch to readFile from @tauri-apps/plugin-fs, which uses the already-granted fs:allow-read-file + fs:scope {path:**/*} IPC path with no additional configuration needed. Add @tauri-apps/plugin-fs ~2.0.0 (matches existing Cargo.toml tauri-plugin-fs). Update tests: mock @tauri-apps/plugin-fs in sandbox via mutable fsReadRef, add regression guard that proves fetch is never called. GAP-CHAT-02: TurnChanges.tsx comment said "past that the first 3 show" but TURN_CHIPS_FIRST=2 (evidence: Conductor hDo=2) and turnChangesCache.ts are both 2. Fix comment to match code and add evidence reference. NATIVE_NOT_RUN: live drop, overlay rendering, confirmed bytes in signed build. Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
…affeinate manifest pkg hashes paletteOpenInLifecycle.test.ts runInNewContext require() blocked any external module not in its allowlist. useWindowDragDrop now imports readFile from @tauri-apps/plugin-fs; add it to the mock with forbidden (isTauri()=false so it is never called, but the import must resolve). caffeinateConsumer.test.ts manifest.json guards against package.json / package-lock.json drift to ensure the frozen baseline graph runs against matching node_modules. Adding @tauri-apps/plugin-fs changed both hashes; update them to the current values. Fixes: not ok 2886, not ok 3522, not ok 3523, not ok 3524 Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
…ge files graph.tar.gz package.json and package-lock.json were from before @tauri-apps/plugin-fs was added. The frozen RED test extracts the archive and checks every file hash in manifest.files, plus validates that the live package.json/package-lock.json match to confirm node_modules compatibility. Regenerate the archive by extracting, swapping in the current package files, and repacking. All 1046 file hashes now match; the RED baseline still correctly fails the caffeinate inhibitor assertion. Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
…d-turn-changes-comment Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Subscribe empty targets to catalogued source chat updates using the existing agent and chat-ID mapping. Refresh after listener registration to close the render/effect hydration race, and release subscriptions with the target lifecycle. Hosted baseline 33b6901 reached the intended missing-chip failure; both controls passed. The mounted fixture is unchanged. Local caller/runtime check passes 3/3; hosted GREEN remains pending. No browser/native/runtime admission. Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Conductor Rebuild. Select final preview by message identity instead of part index, retaining request inhibition, nonfinal blocks and hidden-tool visibility. Frozen grouping fixture 3a9bca3c stays unchanged: three intended failures/seven controls on post-1399 main fcbd2d2 become 10/10; focused checks 107/107. Exact retained selector spans are inert source evidence only; mounted/native/package acceptance is not claimed. Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Conductor Rebuild. Test-only CI correction passes 159 focused checks. Clean committed head 70f0ff5e full frontend suite is partial: 4754 pass, 2 Caffeinate graph navigation timeout failures, zero skips. Fresh typecheck and production build pass; no Caffeinate edits, timeout changes, frozen fixture edits or native acceptance claim. Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Conductor Rebuild. Same Node24 16P8F→24/24, adjacent106 including unchanged typed V3, full chat1849, typecheck and isolated production build pass on source ce9dcf7b8. Exact Node-only production delta and frozen fixtures unchanged; lossless logs retained. Native/provider/package acceptance remains unverified. Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Conductor Rebuild. CopyCode schedules an independent two-second reset on each fulfilled clipboard write, matching retained REA t0. The identical frozen actual-component fixture proves four controls plus the overlapping case: RED 4 pass / 1 predicted failure at 3000ms, GREEN 5/5. Keep lossless raw receipts, parent/span attribution and runtime release. No payload, feedback or labels change. Browser/native/package acceptance was not run. Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Identical mounted Transcript regression: six intended RED failures and two success controls, then GREEN eight passes. Retain lossless TAP, exit/release receipts, source custody and explicit browser/native/RSS limits. Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Conductor Rebuild. Hosted TS2683 reproduced in job 134506866832; add only the erased this receiver type. Every behavioral expression and assertion remains identical to frozen RED/GREEN fixture, with exact reverse source comparison verified. No extra local runtime; mandatory hosted CI must verify the permanent port. Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
Retain the identical 14-case RED/GREEN receipts and callback coverage limits. Product scope remains the frozen three-site prop forwarding. Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
reason-machines Bot
added a commit
that referenced
this pull request
Nov 18, 2026
## Summary Conductor Rebuild: explicit scheme-less Markdown links such as `[source](src/a.ts)` previously skipped workspace resolution and reached the external-link path. Route accepted local targets through the existing path-only file callback, without changing callback/origin APIs or the URL sanitizer. - `markdown.ts`: share the existing lexical containment owner while keeping code/prose recognition unchanged; strip raw query/fragment, decode once, and resolve explicit targets against the supplied workspace. - `LinkMenu.tsx`: one optional inert-render port. Rejected or unavailable local targets are spans, not external-link fallbacks, while retaining the same raw “Copy link address” menu. - Add the unchanged twenty-case permanent regression and original REA/source, RED/GREEN TAP, execution and byte-binding evidence under [the evidence directory](evidence/chat/explicit-workspace-links/README.md). Based directly on main `234ec70ea89135b83f68f287330a3701d27f2b2d`, not stacked. Only two product files change; no package, dependency, lockfile or workflow changes. ## Verification Exact same command and fixture in separately serialized Reason Cloud admissions: ```bash taskset -c 0 timeout --signal=TERM --kill-after=5s 60s \ env NODE_OPTIONS=--max-old-space-size=768 \ node --test --test-concurrency=1 src/features/chat/explicitWorkspaceLinks.test.ts ``` - **Reproduced before fix (expected failure):** 20 tests; 16 semantic target failures, four controls pass; no cancellations/skips/todo. Raw RED TAP SHA-256: `f2e4ce7e5f089bf176db853b6380a9f6838281fc698c7de65da61c1270ba954a`. - **Passed after fix:** identical fixture SHA-256 `6dee0e6360521b4272cc0ce478258dc243fbe74c9c23c1badac311fc7a4cfb29`; 20/20 pass, zero failures/cancellations/skips/todo. Raw GREEN TAP SHA-256: `0c76dcb34cb0624d3b946cb5ebb648a467b0d158b3a3d576537ba2aa31d4c58a`. - GREEN reached previously unreached workspace/callback replacement, callback removal, default-anchor prevention, and all twelve negative/menu-copy subcases. All four controls stayed green. - **Passed static delivery checks:** seventeen complete current-main baseline/candidate bindings, byte-identical permanent fixture, exact reviewed two-file patch/reversal, lossless TAP archive round-trips, and `git diff --check`. Original runtime/source/dependency/evidence pins passed pre/post execution. Frozen historical metadata remains unchanged. - **Not run locally:** additional Node/transpile/typecheck/build/adjacent regressions. Existing hosted `Frontend typecheck + build` runs typecheck, full frontend unit suite (including this fixture), build and isolation checks; `Evidence tools compile` handles evidence checks. Hosted results are pending and must pass on the exact published head before merge. Conditional skipped jobs are not passes. Original GREEN source was `9a615be52c140f17144618ce31c0d18b812f9169`; delivery rebases unchanged candidate bytes onto the fresh main above. See `delivery-binding.json` rather than treating the old runtime as execution on this published commit. ## Reference and limits Retained real-app REA receipt `ev_410f83a50764142c952de5f040cde338700477289c1687932071bdc5427c84b2` and pinned shipped-source spans qualify the bounded href decision chain; extracted code is inert evidence. No screenshot/recording: this lane is unit/source/hosted validation only, with native/package custody held by the existing executor; no duplicate browser/native run or provider retry was authorized. **Unverified:** native/browser, real portal/OS clipboard/Finder, editor line selection, reference file-menu behavior, special-file-URI navigation, cloud-origin routing, full WorkspaceView integration, symlink/filesystem confinement, visual parity and installed-package containment. Existing callback/ReasonPath origin contracts stay unchanged; stripped path suffixes do not prove line selection. Typed14/plan11 are distinct preserved historical witnesses, not rerun here. #1486 is merged historical work, not this deliverable. Co-authored-by: svemyh <40596752+svemyh@users.noreply.github.com> Co-authored-by: qa-runner2-star <319404260+qa-runner2-star@users.noreply.github.com>
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.
Change
Conductor Rebuild forwards the existing workspace file context through the typed-subagent branch: dispatch → explicit
SubagentRowprops/destructure → FormattedMarkdown. The only product diff is three lines inToolRows.tsx; the props are removed before...shellreachesRowShell.Raw text, structured-result selection, copying, disclosure, lexical/path handling, external opening and link-menu code are unchanged. The plan-link change from merged #1482 is historical and not part of this deliverable. This PR targets main, not another PR branch.
Evidence and regression
The permanent fourteen-case fixture is byte-identical between RED and GREEN (SHA-256
e6c4da93039470df8a676b0bbd0a8947b15d0803bea0468a486330f61da04049). The same command ran exactly once per separately admitted phase on Reason Cloud:RED: exit 1, seven intended
TYPED_SUBAGENT_MUST_FORWARD_WORKSPACE_FILE_CONTEXTfailures and seven passing controls; no setup failure/timeout/skip.GREEN: exit 0, 14/14 passed, zero failed/cancelled/skipped/todo. Actual test
2026-11-18T02:30:56.249211Z–02:31:04.652947Z; release02:31:05.049053Z. Owned PG139 was reaped with zero survivors; no TERM/KILL. CPU0/nice10/UV1, unchanged 95s foreground/60+5+30s envelope, per-Node heap768 (not group RSS), minimum sampled free disk 6,582,894,592 bytes, TAP 3,322 bytes. All 15 current-main source bindings, 11 runtime inputs, ten dependency identities and frozen request/evidence/candidate/committed-source pins passed before/after. Fresh main checked:590e58910884998e242cafb037f53286d4c7fb45; subsequent normal merge retained exact candidate/fixture bytes.Actual callbacks exercised: all four path variants, structured-result choice, first and replacement workspace/callback destinations, restored Formatted context after Raw/collapse/reopen; also existing result copy, external opener, context-menu opening and Copy link address through adapters. Seven controls remained passing.
Static checks passed: archived receipt/TAP identity, fixture/candidate hash identity, exact frozen-patch reversal via
git apply --reverse --check, focused diff andgit diff --check. Fixture transpile diagnostics passed for full row/link-menu modules; this is not a full typecheck. Mandatory hosted CI will run the permanent fixture through the existing frontend unit glob, adjacent tests, typecheck and build. No extra local Node/install/typecheck/build was run.Limits
React renderer executes production row/Markdown/remark and real React state; backend, clipboard, menu portal and icon boundaries are adapted. The reset timer is recorded, not fired. No mounted WorkspaceView integration, two-row simultaneous isolation, browser DOM/mouse, filesystem/symlink confinement, native opener/Finder, OS clipboard, visual parity or installed-build containment is claimed. No screenshot/recording: browser/native/package verification stays with the existing sole native owner, with no duplicate dispatch here.
Merge only after all executed checks/workflows pass on the exact head. Conditional manual Rust/macOS suites are not triggered by this PR.