TUI hosts sessions: new-session form, named worktrees, resume, faster permissions
- Use the terminal's own colors and background; the key bar and the Needs-you panel wrap, fixed-width panels shrink on narrow terminals. - Sessions run on threads of the TUI (tui/host.rs), capped by the profile's `workers`; quitting asks for `yes` and suspends them. New `suspend` command keeps the state so a session can be resumed. - `N` opens a new-session form: machine, name, --after, a named branch or worktree (place.rs; never deleted by orch), and a "keep for a PR" option. - `u` resumes suspended sessions and ones whose process died. - `A` allows identical permission requests across sessions, `P` saves an allow rule to the profile with toml_edit (comments kept). - Fix clippy lint in report.rs so tests/all.sh passes; add GLOSSARY.md. Includes the already staged `orch init` work (init.rs, example profile). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5a80bc9fe1
commit
cfb735cdb3
22 files changed
+1623
-115
No files matched your search
@@ -63,6 +63,22 @@ from its saved state; `--machine`, `--name` and `--after` are not allowed with i
|
||||
with `report = "junit"` writes its JUnit XML to `$ORCH_REPORT` (also available as `{{report}}` in `cmd`); orch parses
|
||||
it into counts and failing tests.
|
||||
|
||||
`N` on the overview opens the new-session form: machine (`←→`), name, sessions to wait for, and where to work.
|
||||
"Work in" takes a branch or the name or path of a worktree of the repo (`←→` picks a listed one); a branch that
|
||||
exists is checked out, a new one is created from `HEAD`, and left empty you get `hx/sN-name` as before. orch never
|
||||
deletes a worktree it did not create. The merge toggle ends the session at `done` where the machine would merge, so
|
||||
the branch stays for a pull request. Sessions started this way run on threads of the TUI, at most `workers` of the
|
||||
`default` profile at a time (the rest wait as `queued`; sessions waiting for `--after` take no slot). `q` while they
|
||||
run asks for `yes` and suspends them; `u` on the overview resumes every suspended session and every one whose process died (it shows in the key bar
|
||||
with a count); `orch session --resume sN` does the same for one session from a shell.
|
||||
|
||||
On a permission request in the Needs-you box: `y` allow once, `Y` always for that session, `n` deny, `A` allow
|
||||
once every pending request that asks for the same thing (any session), and `P` save an allow rule to the profile
|
||||
`default`. `P` opens a line with a guess (`edit`, or `bash:<command>`) you can change; it is checked like a profile
|
||||
entry and appended to `allow` with the rest of the file left alone, and the request is allowed. It refuses when the
|
||||
profile has no file or no `allow` list (that means everything is allowed already). Running sessions keep the
|
||||
policy they started with; the rule counts for sessions started afterwards.
|
||||
|
||||
A running session can be steered from the session screen, also when `orch session` runs in another terminal: `i`
|
||||
interrupt (the agent stops, you reply with a hint), `m` message to the agent, `s` force a state, `k` kill (type
|
||||
`yes`; goes to `on_abort`), and `r` re-plan from the start state while the loop detector box shows (the last test
|
||||
|
||||
Reference in new issue
Block a user