Summary
In the interactive TUI (astra), any user input that starts with / is unconditionally treated as a slash command. An absolute filesystem path such as /Users/guolvlin/astra-workspace/shaking-web-site is therefore parsed as a command and fails with Unknown command: /Users/... · type / to browse all commands — the agent never receives the message. There is no escape mechanism (e.g. // or a literal-send command), so on Unix systems the user cannot directly prompt the agent with a path-prefixed message.
Environment
- Commit:
27c0c9e4 (2026-08-15)
- Version: astra 0.1.0
- OS: macOS
- Mode: interactive TUI (
astra)
Reproduction
- Run
astra (interactive TUI).
- Type a bare absolute path as the first input:
/Users/guolvlin/astra-workspace/shaking-web-site
- Observed:
✖ Error · Unknown command: /Users/guolvlin/astra-workspace/shaking-web-site · type / to browse all commands
- The agent never sees the text; it looks like the session "doesn't remember" the workspace, but the message was never sent.
Actual behavior
- Any
/-prefixed input routes to the slash-command dispatcher (submission_projection in crates/astra-cli/src/tui/event_loop.rs):
} else if text.trim_start().starts_with('/') {
SubmissionProjection::LocalAction(text)
}
crates/astra-cli/src/tui/slash_dispatch.rs then matches cmd.trim_start_matches('/') against the command registry; no match → "Unknown command".
- No escape path exists: no
// literal handling, no "send as text" command, nothing in the command registry for arbitrary paths.
Expected behavior
One or more of:
- Only treat input as a slash command if it matches a known command (or prefix of one), otherwise fall back to conversation, and/or
- Provide an escape, e.g.
//Users/... → send /Users/... as a literal message, and show the hint in the / menu, and/or
- On "Unknown command", suggest the workaround (e.g. "start your message with text, or use
// to send a literal path").
Impact
On Unix, absolute paths start with /. Users cannot directly ask the agent to work on a path by typing it first; they must prefix it with natural-language text (e.g. 看一下 /Users/...), which is non-obvious and produces a confusing "Unknown command" error that can be mistaken for the session losing its workspace context.
Summary
In the interactive TUI (
astra), any user input that starts with/is unconditionally treated as a slash command. An absolute filesystem path such as/Users/guolvlin/astra-workspace/shaking-web-siteis therefore parsed as a command and fails withUnknown command: /Users/... · type / to browse all commands— the agent never receives the message. There is no escape mechanism (e.g.//or a literal-send command), so on Unix systems the user cannot directly prompt the agent with a path-prefixed message.Environment
27c0c9e4(2026-08-15)astra)Reproduction
astra(interactive TUI).Actual behavior
/-prefixed input routes to the slash-command dispatcher (submission_projectionincrates/astra-cli/src/tui/event_loop.rs):crates/astra-cli/src/tui/slash_dispatch.rsthen matchescmd.trim_start_matches('/')against the command registry; no match → "Unknown command".//literal handling, no "send as text" command, nothing in the command registry for arbitrary paths.Expected behavior
One or more of:
//Users/...→ send/Users/...as a literal message, and show the hint in the/menu, and/or//to send a literal path").Impact
On Unix, absolute paths start with
/. Users cannot directly ask the agent to work on a path by typing it first; they must prefix it with natural-language text (e.g.看一下 /Users/...), which is non-obvious and produces a confusing "Unknown command" error that can be mistaken for the session losing its workspace context.