Skip to content

fix(chat): match tool-row copy confirmation duration - #1477

Merged
reason-machines[bot] merged 25 commits into
mainfrom
fix/chat-drag-drop-and-turn-changes-comment
Nov 17, 2026
Merged

reason-machines[bot] merged 25 commits into
mainfrom
fix/chat-drag-drop-and-turn-changes-comment

Conversation

@reason-machines

@reason-machines reason-machines Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Conductor Rebuild fixes the duration-only TOOL-ROW-COPY-FEEDBACK-BE7 gap.

  • Change only the shared plan/typed-subagent CopyIcon successful reset from 1500 to 2000 ms.
  • Preserve every independent overlapping-copy timer, fulfillment behavior, payload, label, error path, disclosure, approval and provider/result selection.
  • Add the exact frozen production-component regression; retain all assertions in the two existing typed-subagent suites, changing only their source-justified timer expectation to 2000 ms.
  • Reconciled the assigned branch to exact main 5397204995280d90903e17dae3f391759bcde1d9 before treatment; this PR targets main, not another feature branch.

Reproduction and verification

The complete production module is transpiled and its real ConductorToolRow -> plan/typed-subagent -> CopyIcon callers are mounted with React state, real payload conversion and deferred clipboard Promises. Unrelated presentation/backend calls are stubbed; no copy-state implementation is duplicated.

Frozen fixture: 8538 bytes, SHA-256 baca8d635d26f2c93f7cc97356fc232ae0cb780b86847b17449b5259e355105a.

Both runs used this identical command and fixture in this Session's isolated source runtime:

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/toolCopyReset.test.ts
  • RED: failed as intended, exit 1: 4 timing failures / 4 passing controls. Only the 1500-ms premature-reset and first-overlapping-reset assertions failed, once per real caller.
  • GREEN: passed, exit 0: 8/8 with the identical fixture/assertions and only the timeout literal changed.
  • All boundaries at 1499/1500/1999/2000 ms and independent resets for successful copies at 0/1000/2500 -> 2000/3000/4500 ms are retained.
  • Exact payload, structured result vs flattened fallback, propagation, disclosure, delayed fulfillment and absent-payload controls passed.
  • Static passed: python3 evidence/chat/tool-copy-reset/verify.py — 96 source/custody/treatment/execution checks.
  • Whitespace passed: git diff --check origin/main.
  • Adjacent legacy suites passed separately: 58/58, exit 0 (42 raw-result and 16 error/disclosure cases), zero skips/cancellations. Every assertion/control remains, with only the exact timer expectation retimed. Command:
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/typedSubagentRawResult.test.ts src/features/chat/typedSubagentErrorResult.test.ts

Attribution and limits

Full source closure, immutable baselines, raw outputs and actual phase-release receipts include 14 complete retained original declaration spans, their offsets/digests and the normal producer/registry/caller binding. The full retained renderer identity was checked; the historical semantic REA pass exhausted its heap, so this is retained real-app source attribution, not new native observation.

Dependency install, RED, GREEN and adjacent legacy tests ran under separately admitted CPU0 slots on Reason cloud. RED released 22:07:23.607597Z, GREEN 22:11:04.534471Z, legacy 22:17:22.459627Z on 2026-11-17; no own Node/npm survivors remained. The private 334,744,289-byte dependency directory/cache/temp was removed at final release. RSS was not measured; a 768-MiB Node heap cap is not RSS proof.

Not run: local full typecheck/build/frontend suite, browser/DOM screenshot, OS clipboard, Tauri/native, providers/backend, packaging or installed-app/side-by-side acceptance. No screenshot exists because browser/native execution was not admitted. Root and the existing sole E1 owner retain package/native custody; no duplicate dispatch or release watcher was created. This PR is distinct from #1473 CopyCode and #1475 Transcript.

reason-machines Bot and others added 25 commits November 16, 2026 20:17
…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>
@reason-machines
reason-machines Bot merged commit d435e2b into main Nov 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants