fix(tui): /compact <instructions> reach the compaction request
The queued /compact command drained into Effect::Compact with only the session id, so the instructions typed after the command never reached the shell's compaction prompt (which already accepts userContext). The effect carries the parsed instructions, trimmed so an edited queue row with leading whitespace still counts. Ported from upstream 1.0.22 (grok-build dispatch/queue.rs). Claude-Session: https://claude.ai/code/session_01RUqV8HVGXcAETyYbZ2tPQ4
This commit is contained in:
1 parent
4512df79e6
commit
584d0fb77e
4 files changed
+46
-6
No files matched your search
@@ -1431,6 +1431,8 @@ pub enum Effect {
|
||||
Compact {
|
||||
agent_id: AgentId,
|
||||
session_id: acp::SessionId,
|
||||
/// `/compact <instructions>`, forwarded as `userContext`.
|
||||
user_context: Option<String>,
|
||||
},
|
||||
/// Kill a background task.
|
||||
KillBgTask {
|
||||
|
||||
Reference in new issue
Block a user