M10: /new, session listing, /sessions picker, hx -r, session titles, rpc session ops
Closes #86, closes #87, closes #88, closes #89, closes #90, closes #91
This commit is contained in:
1 parent
1e87857a34
commit
23eb00d920
12 files changed
+957
-124
No files matched your search
@@ -10,13 +10,20 @@ hx # interactive TUI
|
||||
hx -p "hello" # one-shot, Claude
|
||||
hx --provider codex -p "hello" # one-shot, Codex
|
||||
hx -c # continue last session in this directory
|
||||
hx -r # pick a session to resume
|
||||
hx -r parser # resume the session whose title best matches "parser"
|
||||
```
|
||||
|
||||
TUI: `enter` send, `alt-enter`/`ctrl-j` newline, `esc` abort, `ctrl-o` expand tool output, `pgup`/`pgdn` scroll.
|
||||
`/help` lists commands: builtins (`/model`, `/provider`, `/compact`, `/clear`, `/lsp`, `/mcp`, `/skills`, `/resume`, `/quit`), MCP
|
||||
`/help` lists commands: builtins (`/model`, `/provider`, `/compact`, `/clear`, `/lsp`, `/mcp`, `/skills`, `/new`, `/sessions`, `/resume`, `/quit`), MCP
|
||||
prompts (`/server:prompt`) and skills. Typing `/` opens a completion popup for commands and their arguments
|
||||
(`up`/`down` select, `tab`/`enter` accept, `esc` close); `tab` completes `@file` (mentioned files are
|
||||
attached). `ctrl-p` opens a picker over commands, skills, models and recent sessions (enter resumes one).
|
||||
attached). `ctrl-p` opens a picker over commands, skills, models and the 5 newest sessions.
|
||||
|
||||
Sessions: `/new` (or `/clear`) starts a new session file; the old one stays resumable. `/sessions` opens a
|
||||
full-screen picker with a preview: type to filter by title, `tab` toggles this project / all projects,
|
||||
`ctrl-d` deletes (asks first), `enter` resumes. The title (first prompt) shows in the footer and the
|
||||
terminal window title.
|
||||
Lens findings and affected-test results appear after each turn as a `┄ lens ┄` block. At 140+ columns,
|
||||
`/help`, `/skills`, `/lsp`, `/mcp` open in a side panel (`esc` closes). `NO_COLOR` disables colour,
|
||||
`HX_ASCII=1` uses ASCII symbols. Messages typed while the agent works are queued.
|
||||
@@ -149,7 +156,8 @@ event object above). Methods: `prompt {text}` (replies `{message, usage}` when t
|
||||
`state`, `messages`, `fork {id}`, `clear`, `set_model {model}`, `compact`, `complete {line, cursor?}`
|
||||
(replies `{start, items: [{label, detail}]}`; `label` replaces `line[start..cursor]`, cursor is a byte
|
||||
offset defaulting to the end). One prompt at a time; other methods are rejected while it runs (except
|
||||
`abort` and `complete`). Example client: `examples/rpc_client.py`.
|
||||
`abort` and `complete`). Sessions: `sessions {scope?: "project"|"all"}` (path, title, messages, model,
|
||||
branches, project, modified), `new`, `resume {path}`; `state` includes `title`. Example client: `examples/rpc_client.py`.
|
||||
|
||||
### Extensions
|
||||
|
||||
|
||||
Reference in new issue
Block a user