Fix task Debug loading and add copy output #1321

Closed
opened 2026-10-27 13:39:55 +00:00 by sam · 0 comments
Owner

Opening Changed files before Debug leaves Debug loading without sending its API request. In ui/src/tasks/use-task-run.ts, changes and debug use attemptKey with a shared started Set, so keyedLoad treats the debug read as already started by the changes read. The Debug JSON output also has no copy control, requiring manual selection. Scope request deduplication to each payload cache and provide a button that copies the complete displayed JSON with feedback. Acceptance: switching between Changed files and Debug in either order loads both payloads for the same attempt; repeat visits reuse their respective caches; Copy output writes the complete formatted JSON to the clipboard and reports copy failure without hiding the output. Verify both behaviors with a browser regression check.

Notes

Browser regression also reproduced a pinned-attempt Debug deep link that never started its read because the lazy payload watcher was not immediate. Included in this loading fix; acceptance includes reloading a Debug URL with an attempt parameter.

Close reason

Fixed in 83a7365e. Removed the shared fetched-key set and deduplicate through each payload cache. Immediate lazy payload loading also fixes pinned-attempt Debug deep links. Shared JSON viewer now copies the complete formatted output with success or failure feedback. Browser check at 1920x947 on the existing dev server reproduced the missing Debug request and verified both tab orders, pinned-link reload, cache reuse, exact clipboard output, and clipboard failure preserving the output. Dashboard rebuilt; task check passed.


Imported from beads archie-core-fpva · GitHub #1399 · type bug · priority P1 · created 2026-10-05 · closed 2026-10-05

Opening Changed files before Debug leaves Debug loading without sending its API request. In ui/src/tasks/use-task-run.ts, changes and debug use attemptKey with a shared started Set, so keyedLoad treats the debug read as already started by the changes read. The Debug JSON output also has no copy control, requiring manual selection. Scope request deduplication to each payload cache and provide a button that copies the complete displayed JSON with feedback. Acceptance: switching between Changed files and Debug in either order loads both payloads for the same attempt; repeat visits reuse their respective caches; Copy output writes the complete formatted JSON to the clipboard and reports copy failure without hiding the output. Verify both behaviors with a browser regression check. ### Notes Browser regression also reproduced a pinned-attempt Debug deep link that never started its read because the lazy payload watcher was not immediate. Included in this loading fix; acceptance includes reloading a Debug URL with an attempt parameter. ### Close reason Fixed in 83a7365e. Removed the shared fetched-key set and deduplicate through each payload cache. Immediate lazy payload loading also fixes pinned-attempt Debug deep links. Shared JSON viewer now copies the complete formatted output with success or failure feedback. Browser check at 1920x947 on the existing dev server reproduced the missing Debug request and verified both tab orders, pinned-link reload, cache reuse, exact clipboard output, and clipboard failure preserving the output. Dashboard rebuilt; task check passed. --- _Imported from beads `archie-core-fpva` · GitHub #1399 · type bug · priority P1 · created 2026-10-05 · closed 2026-10-05_
sam added the highbug labels 2026-10-27 13:39:55 +00:00
sam self-assigned this 2026-10-27 13:39:55 +00:00
sam closed this issue 2026-10-27 13:39:55 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1321