hex/crates/router/src/routing
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kit Langton 1aca589408 Capture Undo: never commit over new input or leave a revert staged
The commit could delete a subagent result or a turn that arrived after the
revert was staged, and a failed commit left the revert staged while
reporting it reverted, so the next prompt deleted everything after it.

Undo now looks again after staging and commits only if nothing came in.
Anything else, including a busy or failed commit (never retried), clears
the staged revert (DELETE /revert) and then disowns, since a prompt commits
a staged revert. If even the clear fails it says nothing more and reports
`unfinished`, unsaved so it can be tried again. Files go back only when the
turn ran an edit tool, so editor edits made meanwhile survive. Stage
retries stop at the caller's deadline.
2026-10-26 23:11:43 -07:00
..
fixtures Import Scrawl's router crate 2026-10-25 15:07:14 -07:00
jev.rs Captures: route on what a look found when OpenCode is slow, and review fixes 2026-10-26 21:02:52 -07:00
look.rs Captures: rules send whatever the routing flags, and the look keeps to one deadline 2026-10-26 21:02:52 -07:00
named.rs Import Scrawl's router crate 2026-10-25 15:07:14 -07:00
policy.rs Captures: only a saved rule sends on its own; everything else is a guess 2026-10-26 21:02:52 -07:00
router.rs Captures: rules send whatever the routing flags, and the look keeps to one deadline 2026-10-26 21:02:52 -07:00
served.rs Import Scrawl's router crate 2026-10-25 15:07:14 -07:00
smart.rs Captures: rules send whatever the routing flags, and the look keeps to one deadline 2026-10-26 21:02:52 -07:00
undo.rs Capture Undo: never commit over new input or leave a revert staged 2026-10-26 23:11:43 -07:00