Repository navigation
Wave 9: Discord fixes for Fusion and quit (agent) - #1764
Merged
Merged
Conversation
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.
…' into int/w9-main
…s' into int/w9-main
This was referenced Nov 25, 2026
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.
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):
Each PR also has green GitHub CI on its own head.