Skip to content

Wave 9: Discord fixes for Fusion and quit (agent) - #1764

Merged
sosidudku1 merged 15 commits into
mainfrom
int/w9-main
Nov 25, 2026
Merged

sosidudku1 merged 15 commits into
mainfrom
int/w9-main

Conversation

@sosidudku1

@sosidudku1 sosidudku1 commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Combined merge of four agent PRs into main, 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: 2227 files passed (1 skipped), 26408 tests passed (13 skipped), 0 failed

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

A worker's started event now carries the message its turn was started
with (clipped at 40,000 chars) and, when the task asked for a role or
model it did not get, the reason. The SSE and AG-UI frames forward both;
the TUI started line prints the reason.

Refs ATO-1754
…O-1689)

In auto mode (approval level 2) a normal chat writes inside its folder
without asking, but fusion.delegate still asked before every fan-out
into that same folder: fusion_fanout only goes quiet at level 4.

At levels 2 and 3, a fan-out whose directories all sit inside the
chat's working directory now goes through the gate as a workspace
write (so saved rules still apply) instead of the fan-out question.
Its workers get no fan-out scope, so they run under the standing level
like the chat itself: writes in the folder go through, shell commands
are refused back to the orchestrator. Outside the folder, after a
decline in it, and at level 1 the question is asked as before.
…1700, ATO-1701)

Each worker keeps the diffstat of its ok os.fs.write / os.fs.edit calls,
summed per path. A workspace worker's paths are rebased to the folder
after its merge, keeping only what the merge wrote. fusion.delegate sums
the rows into details.diffstats and the tool_result frame carries them
as diffstats, so the desktop's Changed files card can list them.
…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.
…1700)

A split parent's closed row now sums its children's diffstats, and a
task the judge sent back keeps the first attempt's files next to the
retry's: both stay changed in the folder.
…content (ATO-1689)

Review follow-ups. A quiet fan-out still asks when the contract has
checks or provide examples (they run commands with no gate of their
own), after a worker was refused a command under a quiet fan-out this
turn, and when the chat read outside content. A worker's refused
command under a quiet fan-out gets its own refusal text and makes the
next fan-out of the turn ask once; the worker brief no longer promises
commands it cannot run. Split children's checks are reported as not
run under a quiet fan-out.
…O-1701)

Every task failing its checks still leaves its in-place writes in the
folder, so the frame carries the list whatever the call's status. The
fusion README describes the new module and field.
…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.
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