Fix sidebar repaint and command restart navigation
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "restart_exited_process_from_sidebar",
|
||||
"cols": 120,
|
||||
"rows": 40,
|
||||
"scripts": [
|
||||
{
|
||||
"name": "quick-shell",
|
||||
"body": "#!/bin/sh\ncount_file=\"$XDG_RUNTIME_DIR/quick-shell-count\"\nif [ -f \"$count_file\" ]; then\n n=$(cat \"$count_file\")\nelse\n n=0\nfi\nn=$((n + 1))\nprintf '%s\\n' \"$n\" > \"$count_file\"\nprintf 'QUICK RUN %s\\n' \"$n\"\n"
|
||||
}
|
||||
],
|
||||
"steps": [
|
||||
{
|
||||
"type": "mcp_call",
|
||||
"method": "spawn_process",
|
||||
"params": { "kind": "command", "argv": ["quick-shell"], "name": "quick-shell" }
|
||||
},
|
||||
{ "type": "wait_text", "contains": "QUICK RUN 1", "timeout_ms": 5000 },
|
||||
{ "type": "wait_stable", "timeout_ms": 2000 },
|
||||
{ "type": "assert_contains", "contains": "○ quick-shell" },
|
||||
{ "type": "send_text", "text": "\u0017" },
|
||||
{ "type": "wait_stable", "timeout_ms": 2000 },
|
||||
{ "type": "assert_contains", "contains": "quick-shell · you have control" },
|
||||
{ "type": "mark_raw", "save_as": "before_restart" },
|
||||
{ "type": "send_text", "text": "\u0012" },
|
||||
{ "type": "wait_text", "contains": "QUICK RUN 2", "timeout_ms": 5000 },
|
||||
{
|
||||
"type": "assert_raw_since_regex",
|
||||
"from": "before_restart",
|
||||
"regex": "QUICK RUN 2",
|
||||
"timeout_ms": 2000
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user