Skip to content

Wave 9: Discord fixes for Fusion and quit (desktop) - #1763

Closed
sosidudku1 wants to merge 11 commits into
rel/xp-buildfrom
int/w9-xp
Closed

sosidudku1 wants to merge 11 commits into
rel/xp-buildfrom
int/w9-xp

Conversation

@sosidudku1

@sosidudku1 sosidudku1 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Combined merge of three desktop PRs into rel/xp-build, checked together on the MacBook Pro before merging. These fix issues users reported in Discord.

Included:

Checks on the combined branch (MacBook Pro, 25.11):

  • build, lint, typecheck:tests:reduce: pass
  • vitest: 2226 files passed (1 skipped), 26357 tests passed (13 skipped), 0 failed
  • desktop build, lint, test:unit: 2980/2980
  • smoke all: 919 pass, 0 fail, 1 skip
  • smoke:live: 20 pass, 1 skip (L13, no Accessibility permission on the runner), 1 fail on the full run (L08, a known flaky scenario, ATO-1755); L08 passed on 2 isolated reruns

Each PR also has green GitHub CI on its own head.

A worker's started line in the chat gets a quiet "What it was told"
toggle when the agent sends the brief (agent change for ATO-1754). Open,
it shows the model the worker ran on, why it is not on the model it
asked for when that happened, and the full brief in a scrolling box.
Closed by default; the brief is only in the page while open. The started
line also names the model note, as the TUI does.

Refs ATO-1754
…ard (ATO-1702)

A fusion.delegate tool_result frame carries diffstats, a list of the
files its workers changed. The card and the Results tab now add each
checked row, next to the single diffstat a write or edit carries.
…dable (ATO-1696, ATO-1688)

- before-quit asked only about queued messages (ATO-135). It now also
  asks when a chat is still working: "N chats are still working",
  Quit / Cancel, one dialog when there are both (main/quit-question.ts).
- A chat working or waiting on an approval stays on the chat list past
  Load more's cut (chat-list.js pageWithBusy).
- A collapsed project or folder shows the running or approval dot on
  its header, since it draws no rows.
- The ATO-448 offer line now names a quit as well as a restart.
…Stop (ATO-1688)

serve dropped its connections before runtime.shutdown, which aborted the
turns on them. A turn that unwound in that moment wrote its own end as a
plain cancel, over the shutdown's interrupted stand-in, so the chat
reopened with no word that its reply was cut off and no Continue.

The runtime now has beginShutdown (called by serve before it drops the
connections) and isStopping; a turn that ends cancelled while the host
stops ends with INTERRUPTED_TURN_ENDING, transcript kept as written.

(cherry picked from commit f6068f4)
…r a task's (ATO-1688)

Review: shutdown alone set the flag, so a host that stops its own turn
and then shuts down (the TUI's quit, and the tests that pin it) had that
end overwritten. Now only beginShutdown sets it. A durable task's turn
keeps its own end: the task runner runs it again, and Continue on its
chat would have nothing to continue. Tests drive isStopping directly.

(cherry picked from commit 10f775b)
…ms (ATO-1688)

Review: stopNow aborted every turn's request before the SIGTERM (or the
Windows stand-in's end), so the agent could end a turn as a person's
Stop before it knew it was stopping. close() now ends the agent first
and drops the streams once it has gone; a stream the agent's shutdown
broke reads as the app ending the turn, not a transport failure. A
restart keeps the old order. Also: the Pinned block counts only the
pinned rows the page drew, not busy rows kept past the cut.
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.

1 participant