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
@@ -333,6 +333,15 @@ impl Db {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Points a session at a branch and worktree chosen by the user instead of the generated ones.
|
||||
pub fn set_location(&self, id: &str, branch: &str, worktree: &str) -> Result<()> {
|
||||
self.conn.execute(
|
||||
"update sessions set branch = ?2, worktree = ?3 where id = ?1",
|
||||
params![id, branch, worktree],
|
||||
)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn session(&self, id: &str) -> Result<Option<Session>> {
|
||||
Ok(self
|
||||
.conn
|
||||
|
||||
Reference in new issue
Block a user