runpane 2.4.216 → 2.4.217

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -960,6 +960,25 @@ exports.RUNPANE_CONTRACT = {
960
960
  ],
961
961
  "localControl": true
962
962
  },
963
+ {
964
+ "name": "panels conversation",
965
+ "summary": "Record which conversation a terminal panel's agent is on, so Switch to chat and restarts open that one. A Claude Code SessionStart hook runs it with --hook.",
966
+ "usage": [
967
+ "runpane panels conversation --conversation <id> [--source startup|resume|clear|compact] [--panel <panel-id>] [--pane <pane-id>] [--json] [--pane-dir <path>]",
968
+ "runpane panels conversation --hook [--pane-dir <path>]"
969
+ ],
970
+ "mutates": true,
971
+ "additive": true,
972
+ "idempotent": true,
973
+ "toolsets": [
974
+ "panels"
975
+ ],
976
+ "jsonSchemas": [
977
+ "panelConversationRequest",
978
+ "panelConversationResult"
979
+ ],
980
+ "localControl": true
981
+ },
963
982
  {
964
983
  "name": "panes git-status",
965
984
  "summary": "Read the git status of a Pane worktree: uncommitted, unpushed, and behind-main counts.",
@@ -1468,7 +1487,9 @@ exports.RUNPANE_CONTRACT = {
1468
1487
  "name": "notify",
1469
1488
  "summary": "Ask the person a question, or tell them something, wherever they are, and get their answer back.",
1470
1489
  "usage": [
1471
- "runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--json] [--pane-dir <path>]",
1490
+ "runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--questions <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--json] [--pane-dir <path>]",
1491
+ "runpane notify --took <id|Q-n> <answer|question> [--status <text>] [--json] [--pane-dir <path>]",
1492
+ "runpane notify --update <id|Q-n> --asked <text> --what-changed <text> [--title <text>] [--context <text>] [--choices <json>] [--questions <json>] [--links <json>] [--json] [--pane-dir <path>]",
1472
1493
  "runpane notify --resume <id> [--json] [--pane-dir <path>]"
1473
1494
  ],
1474
1495
  "mutates": true,
@@ -2264,7 +2285,7 @@ exports.RUNPANE_CONTRACT = {
2264
2285
  {
2265
2286
  "name": "--source",
2266
2287
  "value": "<user|agent>",
2267
- "description": "Identify whether a local-control mutation is user-initiated or agent/orchestrator-initiated."
2288
+ "description": "Identify whether a local-control mutation is user-initiated or agent/orchestrator-initiated. On panels conversation it is instead what started the conversation: startup, resume, clear, or compact."
2268
2289
  },
2269
2290
  {
2270
2291
  "name": "--strategy",
@@ -2426,6 +2447,11 @@ exports.RUNPANE_CONTRACT = {
2426
2447
  "value": "<text>",
2427
2448
  "description": "What a blocked worker needs answered; required with --state blocked."
2428
2449
  },
2450
+ {
2451
+ "name": "--conversation",
2452
+ "value": "<id>",
2453
+ "description": "The conversation (agent session) id a panel's agent is on, for runpane panels conversation."
2454
+ },
2429
2455
  {
2430
2456
  "name": "--cwd",
2431
2457
  "value": "<path>",
@@ -2524,12 +2550,12 @@ exports.RUNPANE_CONTRACT = {
2524
2550
  {
2525
2551
  "name": "--context",
2526
2552
  "value": "<text>",
2527
- "description": "notify: background shown under Details."
2553
+ "description": "notify: the card's subtitle: one or two sentences on why it matters (up to 240 characters)."
2528
2554
  },
2529
2555
  {
2530
2556
  "name": "--choices",
2531
2557
  "value": "<json>",
2532
- "description": "notify --ui options: 1 to 9 choices as a JSON array of {label, detail?, recommended?}."
2558
+ "description": "notify --ui options: 1 to 9 choices as a JSON array of {label, detail?, recommended?}; with --update a reworded choice adds \"was\", its old label."
2533
2559
  },
2534
2560
  {
2535
2561
  "name": "--detail",
@@ -2554,7 +2580,7 @@ exports.RUNPANE_CONTRACT = {
2554
2580
  {
2555
2581
  "name": "--links",
2556
2582
  "value": "<json>",
2557
- "description": "notify: up to 6 related files or pages as a JSON array of {label, path} or {label, url}; any ui."
2583
+ "description": "notify: up to 6 related files, pages or approvals as a JSON array of {label, path}, {label, url} or {label, approval}; any ui."
2558
2584
  },
2559
2585
  {
2560
2586
  "name": "--content",
@@ -2586,6 +2612,41 @@ exports.RUNPANE_CONTRACT = {
2586
2612
  "value": "<id|name>",
2587
2613
  "description": "notify only, for Autopilot's own items: the Session the item is about."
2588
2614
  },
2615
+ {
2616
+ "name": "--questions",
2617
+ "value": "<json>",
2618
+ "description": "notify --ui options, instead of --choices: 2 to 4 questions as a JSON array of {title, choices}, each with 1 to 9 choices and one pick."
2619
+ },
2620
+ {
2621
+ "name": "--took",
2622
+ "value": "<id|Q-n>",
2623
+ "description": "notify only: say how you took the person's reply to this approval; answer or question follows the id."
2624
+ },
2625
+ {
2626
+ "name": "--took-as",
2627
+ "value": "<answer|question>",
2628
+ "description": "notify --took: the word after the id, as a flag (the MCP tool's tookAs)."
2629
+ },
2630
+ {
2631
+ "name": "--status",
2632
+ "value": "<text>",
2633
+ "description": "notify --took <id> question: what you are doing about it, shown on the approval. Defaults to \"Getting more context…\"."
2634
+ },
2635
+ {
2636
+ "name": "--update",
2637
+ "value": "<id|Q-n>",
2638
+ "description": "notify only: save a new version of this approval after the person's question, and wait on it."
2639
+ },
2640
+ {
2641
+ "name": "--asked",
2642
+ "value": "<text>",
2643
+ "description": "notify --update: the person's question, as they typed it."
2644
+ },
2645
+ {
2646
+ "name": "--what-changed",
2647
+ "value": "<text>",
2648
+ "description": "notify --update: what changed, one line per change."
2649
+ },
2589
2650
  {
2590
2651
  "name": "--decision",
2591
2652
  "value": "<D-n>",
@@ -2754,6 +2815,10 @@ exports.RUNPANE_CONTRACT = {
2754
2815
  {
2755
2816
  "name": "--deny",
2756
2817
  "description": "autopilot answer only: deny the item."
2818
+ },
2819
+ {
2820
+ "name": "--hook",
2821
+ "description": "runpane panels conversation: read a Claude Code SessionStart hook's JSON from stdin and report it for PANE_PANEL_ID. Prints nothing and always exits 0."
2757
2822
  }
2758
2823
  ]
2759
2824
  },
@@ -2821,6 +2886,7 @@ exports.RUNPANE_CONTRACT = {
2821
2886
  " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]",
2822
2887
  " runpane panels pause --panel <panel-id> --yes [--json]",
2823
2888
  " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]",
2889
+ " runpane panels conversation (--conversation <id> [--source startup|resume|clear|compact]|--hook) [--json]",
2824
2890
  " runpane panels close --panel <panel-id> [--dry-run] [--force] --yes [--json]",
2825
2891
  " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]",
2826
2892
  " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]",
@@ -2836,7 +2902,7 @@ exports.RUNPANE_CONTRACT = {
2836
2902
  " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]",
2837
2903
  " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]",
2838
2904
  " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]",
2839
- " runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--relays <item>] [--resume <id>] [--json]",
2905
+ " runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--relays <item>] [--resume <id>] [--took <id|Q-n> <answer|question>] [--update <id|Q-n> ...] [--json]",
2840
2906
  " runpane inbox [--session <id|name>] [--json]",
2841
2907
  " runpane inbox ack <item-id>... [--decision <D-n>] [--session <id|name>] [--json]",
2842
2908
  " runpane autopilot status|waiting|stack [--json]",
@@ -3413,6 +3479,7 @@ exports.RUNPANE_CONTRACT = {
3413
3479
  " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]",
3414
3480
  " runpane panels pause --panel <panel-id> --yes [--json]",
3415
3481
  " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]",
3482
+ " runpane panels conversation (--conversation <id> [--source startup|resume|clear|compact]|--hook) [--json]",
3416
3483
  "",
3417
3484
  "Run \"runpane help panels create\" or another command-specific topic for options."
3418
3485
  ],
@@ -4060,33 +4127,49 @@ exports.RUNPANE_CONTRACT = {
4060
4127
  ],
4061
4128
  "notify": [
4062
4129
  "Usage:",
4063
- " runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--json] [--pane-dir <path>]",
4130
+ " runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--questions <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--json] [--pane-dir <path>]",
4131
+ " runpane notify --took <id|Q-n> <answer|question> [--status <text>] [--json] [--pane-dir <path>]",
4132
+ " runpane notify --update <id|Q-n> --asked <text> --what-changed <text> [--title <text>] [--context <text>] [--choices <json>] [--questions <json>] [--links <json>] [--json] [--pane-dir <path>]",
4064
4133
  " runpane notify --resume <id> [--json] [--pane-dir <path>]",
4065
4134
  "",
4066
4135
  "Asks the person a question, or tells them something, on screen wherever they are, and",
4067
4136
  "prints their answer. The call waits until they answer; --ui info returns at once.",
4068
4137
  "Inside a Pane terminal the question names its Pane from PANE_SESSION_ID and PANE_PANEL_ID.",
4069
4138
  "When Pane is not running it prints an unavailable result: ask in the terminal instead.",
4139
+ "A typed reply comes back as a reply result (or a `reply:` line in your tab): it may answer",
4140
+ "the question or ask one. Say which with --took; for a question, find out, then --update.",
4070
4141
  "",
4071
4142
  "Options:",
4072
4143
  " --ui <ui> options, approve, ask, or info",
4073
- " --title <text> The question or update in one line",
4074
- " --context <text> Background shown under Details",
4144
+ " --title <text> The question or update in one line, about 80 characters",
4145
+ " --context <text> Subtitle: why it matters, one or two sentences",
4075
4146
  " --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]",
4147
+ " --questions <json> options, instead of --choices: 2 to 4 of [{\"title\":\"...\",\"choices\":[...]}], one pick each",
4076
4148
  " --detail <text> approve: the command or SQL to approve",
4077
4149
  " --detail-label <text> approve: label of the disclosure for --detail (default Show details)",
4078
4150
  " --suggestions <json> ask: suggested answers, such as [\"main\",\"release\"]",
4079
4151
  " --action <json> info: one button, such as {\"label\":\"Open PR\",\"url\":\"https://...\"}",
4080
- " --links <json> Any ui: up to 6 related files or pages, such as [{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"}]",
4152
+ " --links <json> Any ui: up to 6 related files, pages or approvals, such as [{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"}]",
4153
+ " or [{\"label\":\"Q-19\",\"approval\":\"Q-19\"}]",
4081
4154
  " --relays <item> Session orchestrator: improve this worker's waiting card (an id from runpane inbox)",
4082
4155
  " instead of posting a second one; the call waits on it, and the answer goes to the worker's tab",
4083
4156
  " --about-session <id|name> Autopilot's own item: the Session it is about",
4157
+ " --took <id|Q-n> <answer|question>",
4158
+ " Say how you took the person's reply: answer records it as the answer;",
4159
+ " question shows that you are getting more context",
4160
+ " --status <text> With --took question: what you are doing (default Getting more context…)",
4161
+ " --update <id|Q-n> Save a new version of the approval after the person's question, and wait on it;",
4162
+ " pass only what changed, and mark a reworded choice with \"was\" (its old label)",
4163
+ " --asked <text> With --update: the person's question, as they typed it",
4164
+ " --what-changed <text> With --update: one line per change",
4084
4165
  " --resume <id> Keep waiting on a question an earlier call returned waiting for",
4085
4166
  " --pane-dir <path> Connect to a specific Pane data directory",
4086
4167
  " --json Print machine-readable output",
4087
4168
  "",
4088
- "Example:",
4089
- " runpane notify --ui options --title \"Which database?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]'"
4169
+ "Examples:",
4170
+ " runpane notify --ui options --title \"Which database?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]'",
4171
+ " runpane notify --took Q-20 answer",
4172
+ " runpane notify --update Q-20 --asked \"Can it be undone?\" --what-changed \"Added: it can be undone from Settings\" --context \"...\""
4090
4173
  ],
4091
4174
  "panels resume": [
4092
4175
  "Usage:",
@@ -4133,6 +4216,32 @@ exports.RUNPANE_CONTRACT = {
4133
4216
  " --pane-dir <path> Connect to a specific Pane data directory",
4134
4217
  " --json Print machine-readable output"
4135
4218
  ],
4219
+ "panels conversation": [
4220
+ "Usage:",
4221
+ " runpane panels conversation --conversation <id> [--source startup|resume|clear|compact] [--panel <panel-id>] [--pane <pane-id>] [--json] [--pane-dir <path>]",
4222
+ " runpane panels conversation --hook [--pane-dir <path>]",
4223
+ "",
4224
+ "Records which conversation a terminal panel's agent is on. Switch to chat, and every restart",
4225
+ "of the panel, open the conversation recorded since its agent started. Inside a Pane terminal",
4226
+ "the panel comes from PANE_SESSION_ID and PANE_PANEL_ID.",
4227
+ "",
4228
+ "--hook is for a Claude Code SessionStart command hook: it reads the hook's JSON from stdin",
4229
+ "(session_id, source; at most 64 KiB, for at most 2 seconds) and reports it for PANE_PANEL_ID.",
4230
+ "It prints nothing and always exits 0, so it never shows in Claude's context or blocks Claude:",
4231
+ "outside Pane, with bad input, when Pane is not running, or with an older Pane.",
4232
+ "",
4233
+ "Options:",
4234
+ " --conversation <id> Conversation (agent session) id",
4235
+ " --source <source> What started it: startup, resume, clear, or compact",
4236
+ " --hook Read a SessionStart hook's JSON from stdin, silently",
4237
+ " --panel <panel-id> Panel id when not running inside a Pane terminal",
4238
+ " --pane <pane-id> Pane id, with --panel",
4239
+ " --pane-dir <path> Connect to a specific Pane data directory",
4240
+ " --json Print machine-readable output",
4241
+ "",
4242
+ "Example:",
4243
+ " runpane panels conversation --conversation 0b6c5f0e-8d1a-4f43-9a51-2f7d0c1e9b44 --source resume"
4244
+ ],
4136
4245
  "lock": [
4137
4246
  "Usage:",
4138
4247
  " runpane lock <acquire|release|list> [options]",
@@ -4602,7 +4711,7 @@ exports.RUNPANE_CONTRACT = {
4602
4711
  "Options:",
4603
4712
  " --ui <ui> options, approve, or ask",
4604
4713
  " --title <text> The question in one line",
4605
- " --context <text> Background shown under Details",
4714
+ " --context <text> Subtitle: why it matters, one or two sentences",
4606
4715
  " --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]",
4607
4716
  " --suggestions <json> ask: suggested answers, such as [\"main\",\"release\"]",
4608
4717
  " --links <json> Up to 6 related files or pages, such as [{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"}]",
@@ -4733,6 +4842,7 @@ exports.RUNPANE_CONTRACT = {
4733
4842
  " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]",
4734
4843
  " runpane panels pause --panel <panel-id> --yes [--json]",
4735
4844
  " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]",
4845
+ " runpane panels conversation (--conversation <id> [--source startup|resume|clear|compact]|--hook) [--json]",
4736
4846
  " runpane panels close --panel <panel-id> [--dry-run] [--force] --yes [--json]",
4737
4847
  " runpane panes git-status --pane <pane-id> [--json] [--pane-dir <path>]",
4738
4848
  " runpane panes commit --pane <pane-id> --message <message> --yes [--json] [--pane-dir <path>]",
@@ -4748,7 +4858,7 @@ exports.RUNPANE_CONTRACT = {
4748
4858
  " runpane agents status (--pane <pane-id>|--panel <panel-id>) [--limit <count>] [--json] [--pane-dir <path>]",
4749
4859
  " runpane agents send (--pane <pane-id>|--panel <panel-id>) --text <message> --yes [--json] [--pane-dir <path>]",
4750
4860
  " runpane report --state <ready|blocked|failed|done> [--pr <number>] [--head <sha>] [--summary-file <path|->] [--question <text>] [--json]",
4751
- " runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--relays <item>] [--resume <id>] [--json]",
4861
+ " runpane notify --ui <options|approve|ask|info> --title <text> [--choices <json>] [--relays <item>] [--resume <id>] [--took <id|Q-n> <answer|question>] [--update <id|Q-n> ...] [--json]",
4752
4862
  " runpane inbox [--session <id|name>] [--json]",
4753
4863
  " runpane inbox ack <item-id>... [--decision <D-n>] [--session <id|name>] [--json]",
4754
4864
  " runpane autopilot status|waiting|stack [--json]",
@@ -5323,6 +5433,7 @@ exports.RUNPANE_CONTRACT = {
5323
5433
  " runpane panels resume (--panel <panel-id>|--session <id|name>|--all-stopped) [--wait-ready] --yes [--json]",
5324
5434
  " runpane panels pause --panel <panel-id> --yes [--json]",
5325
5435
  " runpane panels last-message --panel <panel-id> [--limit <count>] [--json]",
5436
+ " runpane panels conversation (--conversation <id> [--source startup|resume|clear|compact]|--hook) [--json]",
5326
5437
  "",
5327
5438
  "Run \"runpane help panels create\" or another command-specific topic for options."
5328
5439
  ],
@@ -5930,33 +6041,49 @@ exports.RUNPANE_CONTRACT = {
5930
6041
  ],
5931
6042
  "notify": [
5932
6043
  "Usage:",
5933
- " runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--json] [--pane-dir <path>]",
6044
+ " runpane notify --ui <options|approve|ask|info> --title <text> [--context <text>] [--choices <json>] [--questions <json>] [--detail <text>] [--detail-label <text>] [--suggestions <json>] [--action <json>] [--links <json>] [--relays <item>] [--about-session <id|name>] [--json] [--pane-dir <path>]",
6045
+ " runpane notify --took <id|Q-n> <answer|question> [--status <text>] [--json] [--pane-dir <path>]",
6046
+ " runpane notify --update <id|Q-n> --asked <text> --what-changed <text> [--title <text>] [--context <text>] [--choices <json>] [--questions <json>] [--links <json>] [--json] [--pane-dir <path>]",
5934
6047
  " runpane notify --resume <id> [--json] [--pane-dir <path>]",
5935
6048
  "",
5936
6049
  "Asks the person a question, or tells them something, on screen wherever they are, and",
5937
6050
  "prints their answer. The call waits until they answer; --ui info returns at once.",
5938
6051
  "Inside a Pane terminal the question names its Pane from PANE_SESSION_ID and PANE_PANEL_ID.",
5939
6052
  "When Pane is not running it prints an unavailable result: ask in the terminal instead.",
6053
+ "A typed reply comes back as a reply result (or a `reply:` line in your tab): it may answer",
6054
+ "the question or ask one. Say which with --took; for a question, find out, then --update.",
5940
6055
  "",
5941
6056
  "Options:",
5942
6057
  " --ui <ui> options, approve, ask, or info",
5943
- " --title <text> The question or update in one line",
5944
- " --context <text> Background shown under Details",
6058
+ " --title <text> The question or update in one line, about 80 characters",
6059
+ " --context <text> Subtitle: why it matters, one or two sentences",
5945
6060
  " --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]",
6061
+ " --questions <json> options, instead of --choices: 2 to 4 of [{\"title\":\"...\",\"choices\":[...]}], one pick each",
5946
6062
  " --detail <text> approve: the command or SQL to approve",
5947
6063
  " --detail-label <text> approve: label of the disclosure for --detail (default Show details)",
5948
6064
  " --suggestions <json> ask: suggested answers, such as [\"main\",\"release\"]",
5949
6065
  " --action <json> info: one button, such as {\"label\":\"Open PR\",\"url\":\"https://...\"}",
5950
- " --links <json> Any ui: up to 6 related files or pages, such as [{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"}]",
6066
+ " --links <json> Any ui: up to 6 related files, pages or approvals, such as [{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"}]",
6067
+ " or [{\"label\":\"Q-19\",\"approval\":\"Q-19\"}]",
5951
6068
  " --relays <item> Session orchestrator: improve this worker's waiting card (an id from runpane inbox)",
5952
6069
  " instead of posting a second one; the call waits on it, and the answer goes to the worker's tab",
5953
6070
  " --about-session <id|name> Autopilot's own item: the Session it is about",
6071
+ " --took <id|Q-n> <answer|question>",
6072
+ " Say how you took the person's reply: answer records it as the answer;",
6073
+ " question shows that you are getting more context",
6074
+ " --status <text> With --took question: what you are doing (default Getting more context…)",
6075
+ " --update <id|Q-n> Save a new version of the approval after the person's question, and wait on it;",
6076
+ " pass only what changed, and mark a reworded choice with \"was\" (its old label)",
6077
+ " --asked <text> With --update: the person's question, as they typed it",
6078
+ " --what-changed <text> With --update: one line per change",
5954
6079
  " --resume <id> Keep waiting on a question an earlier call returned waiting for",
5955
6080
  " --pane-dir <path> Connect to a specific Pane data directory",
5956
6081
  " --json Print machine-readable output",
5957
6082
  "",
5958
- "Example:",
5959
- " runpane notify --ui options --title \"Which database?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]'"
6083
+ "Examples:",
6084
+ " runpane notify --ui options --title \"Which database?\" --choices '[{\"label\":\"Redis\",\"recommended\":true},{\"label\":\"SQLite\"}]'",
6085
+ " runpane notify --took Q-20 answer",
6086
+ " runpane notify --update Q-20 --asked \"Can it be undone?\" --what-changed \"Added: it can be undone from Settings\" --context \"...\""
5960
6087
  ],
5961
6088
  "panels resume": [
5962
6089
  "Usage:",
@@ -6003,6 +6130,32 @@ exports.RUNPANE_CONTRACT = {
6003
6130
  " --pane-dir <path> Connect to a specific Pane data directory",
6004
6131
  " --json Print machine-readable output"
6005
6132
  ],
6133
+ "panels conversation": [
6134
+ "Usage:",
6135
+ " runpane panels conversation --conversation <id> [--source startup|resume|clear|compact] [--panel <panel-id>] [--pane <pane-id>] [--json] [--pane-dir <path>]",
6136
+ " runpane panels conversation --hook [--pane-dir <path>]",
6137
+ "",
6138
+ "Records which conversation a terminal panel's agent is on. Switch to chat, and every restart",
6139
+ "of the panel, open the conversation recorded since its agent started. Inside a Pane terminal",
6140
+ "the panel comes from PANE_SESSION_ID and PANE_PANEL_ID.",
6141
+ "",
6142
+ "--hook is for a Claude Code SessionStart command hook: it reads the hook's JSON from stdin",
6143
+ "(session_id, source; at most 64 KiB, for at most 2 seconds) and reports it for PANE_PANEL_ID.",
6144
+ "It prints nothing and always exits 0, so it never shows in Claude's context or blocks Claude:",
6145
+ "outside Pane, with bad input, when Pane is not running, or with an older Pane.",
6146
+ "",
6147
+ "Options:",
6148
+ " --conversation <id> Conversation (agent session) id",
6149
+ " --source <source> What started it: startup, resume, clear, or compact",
6150
+ " --hook Read a SessionStart hook's JSON from stdin, silently",
6151
+ " --panel <panel-id> Panel id when not running inside a Pane terminal",
6152
+ " --pane <pane-id> Pane id, with --panel",
6153
+ " --pane-dir <path> Connect to a specific Pane data directory",
6154
+ " --json Print machine-readable output",
6155
+ "",
6156
+ "Example:",
6157
+ " runpane panels conversation --conversation 0b6c5f0e-8d1a-4f43-9a51-2f7d0c1e9b44 --source resume"
6158
+ ],
6006
6159
  "lock": [
6007
6160
  "Usage:",
6008
6161
  " python -m runpane lock <acquire|release|list> [options]",
@@ -6426,7 +6579,7 @@ exports.RUNPANE_CONTRACT = {
6426
6579
  "Options:",
6427
6580
  " --ui <ui> options, approve, or ask",
6428
6581
  " --title <text> The question in one line",
6429
- " --context <text> Background shown under Details",
6582
+ " --context <text> Subtitle: why it matters, one or two sentences",
6430
6583
  " --choices <json> options: 1 to 9 of [{\"label\":\"...\",\"detail\":\"...\",\"recommended\":true}]",
6431
6584
  " --suggestions <json> ask: suggested answers, such as [\"main\",\"release\"]",
6432
6585
  " --links <json> Up to 6 related files or pages, such as [{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"}]",
@@ -6624,6 +6777,7 @@ exports.RUNPANE_CONTRACT = {
6624
6777
  "runpane agents send --pane <pane-id> --text \"Also add a test\" --yes --json",
6625
6778
  "runpane report --state ready --pr 747 --head fc5dce9 --summary-file /tmp/report.md --json",
6626
6779
  "runpane panels last-message --panel <panel-id> --json",
6780
+ "runpane panels conversation --conversation <id> --source resume --json",
6627
6781
  "runpane panels close --panel <panel-id> --yes --json",
6628
6782
  "runpane panels resume --panel <panel-id> --wait-ready --yes --json",
6629
6783
  "runpane panels resume --session <id|name> --wait-ready --yes --json",
@@ -6694,13 +6848,14 @@ exports.RUNPANE_CONTRACT = {
6694
6848
  "`runpane loops list|create|update|run|pause|resume|delete` manage loops (scheduled tasks): a cron schedule that starts a new Pane in a fresh worktree for each run, or sends a prompt to a Session's agent. Loops are for large recurring jobs and run at most once an hour; for short waits, agents use their harness's own sleep and wake. See [LOOPS.md](LOOPS.md).",
6695
6849
  "`runpane agents start|status|send` finish the three common agent jobs in one call each: start an agent on a task (a new tab in the work's Pane with `--pane <id>`, or a new Pane for new work), check on it, and send it a follow-up.",
6696
6850
  "`runpane report --state ready|blocked|failed|done` is how a worker hands back its result. It stores the latest report on the worker's panel (state, `--pr`, `--head`, up to 16,000 characters of `--summary` or `--summary-file`, and the `--question` a blocked worker needs answered), journals an opt-in `agent.report` watch event (`REPORT <pane-name> pane <pane-id> panel <panel-id> ready pr#747 fc5dce9`; it skips the `--min-interval` batch), records it as Session activity, and shows it in `agents status`, `panels list`, and `sessions overview` (each panel's own report as `panes[].panels[].report`, with a JSON object summary as `data`, and the Pane's newest as `panes[].report`). Inside a Pane terminal the panel comes from `PANE_SESSION_ID` and `PANE_PANEL_ID`; elsewhere pass `--pane` and `--panel`. It prints how many watches were waiting for the report and received it (`Delivered to 1 waiting watcher.`, `liveWatchers` in JSON). Zero means nobody was waiting right now, not that the report is lost: it stays on the panel, and a named-cursor watch receives it when it next waits.",
6697
- "`runpane notify` asks the person a question, or tells them something, on screen wherever they are, and prints their answer: `--ui options` with 1 to 9 `--choices` returns `{answer, note?}` (the chosen label), `--ui approve` returns `{approved, note?}`, `--ui ask` returns `{answer}`, and `--ui info` returns `{delivered: \"screen\"|\"inbox\"}` at once. Any ui takes up to 6 `--links` (`{label, path}` or `{label, url}`), shown as chips on the card. The call waits with no time limit. A `{waiting: true, id, next}` result means the wait should continue with `runpane notify --resume <id>`; `runpane mcp` asks for it only for clients whose tool calls time out. When Pane is not running or Notify is off it prints `{unavailable, next}` and exits 0, so the agent asks in its terminal. Invalid input fails before anything is shown, with a message naming the field. A Session orchestrator adds `--relays <item>` (an id from `runpane inbox`) to relay a worker's question: the same card gains the choices, context and links, the call waits on it as usual, and the answer also goes straight to the worker's tab. Autopilot's own item takes `--about-session <id|name>`, the Session it is about. It needs no `--yes`: asking the person is the point.",
6851
+ "`runpane notify` asks the person a question, or tells them something, on screen wherever they are, and prints their answer: `--ui options` with 1 to 9 `--choices` returns `{answer, note?}` (the chosen label), or with 2 to 4 `--questions` (`[{title, choices}]`) one pick each, as `{answer, answers}`, `--ui approve` returns `{approved, note?}`, `--ui ask` returns `{answer}`, and `--ui info` returns `{delivered: \"screen\"|\"inbox\"}` at once. Any ui takes up to 6 `--links` (`{label, path}`, `{label, url}` or `{label, approval}` for another approval), shown as chips on the card. When the person types a reply it returns `{reply, picks?, id, next}` (or, with no open call, types a `reply:` line into the asking tab): the reply may answer the question or ask one. `runpane notify --took <id|Q-n> answer` records it as the answer; `--took <id|Q-n> question [--status <text>]` shows that the agent is getting more context, and `runpane notify --update <id|Q-n> --asked <text> --what-changed <text>` with any changed `--title`, `--context`, `--choices`, `--questions` or `--links` saves a new version and waits on it. `--took` prints `{took, id, next?}`. Only the reply's reader (the asker, the orchestrator that relayed it, or Autopilot) may run them. The call waits with no time limit. A `{waiting: true, id, next}` result means the wait should continue with `runpane notify --resume <id>`; `runpane mcp` asks for it only for clients whose tool calls time out. When Pane is not running or Notify is off it prints `{unavailable, next}` and exits 0, so the agent asks in its terminal. Invalid input fails before anything is shown, with a message naming the field. A Session orchestrator adds `--relays <item>` (an id from `runpane inbox`) to relay a worker's question: the same card gains the choices, context and links, the call waits on it as usual, and the answer also goes straight to the worker's tab. Autopilot's own item takes `--about-session <id|name>`, the Session it is about. It needs no `--yes`: asking the person is the point.",
6698
6852
  "Work sent to an agent through `runpane panels create`, `panes create` (with a prompt), or `panels submit` records that the sender waits for a `runpane report`, unless the request says `--source user` (Pane's own UI does) or `--no-expect-report`; `--expect-report` asks for one anyway. Typing into a tab never does. If the agent then goes ready or its panel exits without a report, Pane journals one opt-in `agent.report.missing` entry (`MISSING REPORT <pane-name> pane <pane-id> panel <panel-id> ready|exited`) whose `lastOutput` is the agent's last transcript reply or last screen lines; it skips the `--min-interval` batch and reaches only watchers that list it in `--kinds`. While the agent's screen shows background work (Claude's `· 1 shell` footer or a running background subagent row, Codex's `background terminal running` line), Pane waits and looks again every 10 seconds instead. `agent.blocked` entries carry `screenLines`, the prompt the agent waits on, and are journalled once a panel has stayed blocked for 2 seconds.",
6699
6853
  "The orchestrator guide prescribes submit without `--wait`, followed by its named watch; use one completion consumer. As an optional CLI route, `--wait` on `runpane panels submit`, `panels create`, and `panes create` turns the expected report on and blocks on that panel until the first `agent.report`, `agent.report.missing`, `agent.blocked`, `panel.exited`, or `pane.gone`, then prints one line of JSON (`dispatchWaitResult`): the outcome, ids, the report's state, summary, `summaryPath`, PR and head, `screenLines` for a prompt, or `lastOutput` for a missing report, never the transcript. It exits 0 for a report, 3 missing, 4 blocked, 5 exited or gone, and 124 when `--timeout <duration>` passes. It follows the journal from the position the daemon took before delivering the work, so nothing that happens right after delivery is missed. It reuses watch --until-event and returns indeterminate (exit 6) if the journal epoch changes or retained history is lost; inspect the panel and inbox before retrying. Report-expected dispatches are serialized per panel and refused before writing while a result or missing-output collection is outstanding. A send with --no-expect-report is a reply (an answer, or an addition to the current work): it is delivered while a report is outstanding and leaves that expectation in place. Then watch for the original result.",
6700
6854
  "`runpane inbox [--session <id|name>] [--json]` lists what a Session's orchestrator has not acknowledged: reports, missing reports, and on-screen questions (a question clears itself once its panel moves on), plus `answers`, what its workers were told, kept 7 days; an answer with no `decision` still needs its D-n. `runpane inbox ack <item-id>...` or `--all --session <id|name>` clears items, and `runpane inbox ack <item-id>... --decision <D-n>` records the D-n, even on an item already cleared. An orchestrator runs it when it starts or resumes, to catch anything that finished while it was down; Pane never injects the inbox into its turns.",
6701
6855
  "`runpane panels resume --panel <panel-id>` restarts a stopped terminal panel in place, keeping its panel id: an agent panel relaunches with its resume command (Claude `--resume <session>`, `codex resume <session>`, Agent Farm `agent-farm run <profile> --resume <id>` with the ID Agent Farm printed; the result's `agentSessionId` names it), the same restart the app runs when it shows the panel, without taking focus. A running panel is left alone (`action: \"already-running\"`); one whose agent exited back to its shell is stopped, and resume runs its saved command again in that shell (`action: \"resumed\"`). If that command exits at once, `--wait-ready` returns `ok: false` with `reason.code: \"command-exited\"` and the error line it printed. `--panel` also resumes a paused tab. `--session <id|name>` or `--all-stopped` resumes every stopped agent panel in that scope and skips paused ones, `--concurrency` at a time (default 3), then, with `--wait-ready`, waits on the resumed panels together, and returns `{ resumed, alreadyRunning, failed, notReady, items[] }` with each panel's own result, readiness, and blocker or error. After a Pane restart, or once an agent exits back to its shell, stopped panels report `running: false` (`initialized` stays true while the shell lives) in `panels list`, `panels screen`, and `panels wait` (which returns `stopped: true` instead of timing out), and `nextCommand` points at `panels resume`. `runpane watch` reports them as `panel.stopped` (`STOPPED ...`) when `--kinds` lists that kind; other consumers and `workspace state` see `agent.unknown` with `running: false`, never `agent.ready`.",
6702
6856
  "`runpane panels pause --panel <panel-id>`, `panes pause --pane <pane-id>` and `sessions pause --session <id|name>` pause a tab, a Pane, or a Session's chat and Panes: Pane stops each terminal tab the way quitting does, without asking, keeps its agent's conversation, and marks it paused. A chat tab can't pause yet: `panels pause --panel` on one fails with `ERR_RUNPANE_CHAT_NOT_PAUSABLE`, and `panes pause` and `sessions pause` leave its agent running and count it in `chatTabsNotPaused`. A paused tab stays stopped through clicks, app restarts and updates until `panels resume --panel`, `panes resume` or `sessions resume` restarts it in its saved conversation. Each returns `{ action, scope, panelIds, unchanged, failed, chatTabsNotPaused, message, nextCommand }`. `panes list` reports a Pane's `paused` mark (`{ at, by: \"manual\" | \"auto\", idleHours? }`) and `inactiveSince`, the latest terminal output or input in its tabs or the last time the person selected it; `panels list` reports each tab's `paused`. `runpane watch` reports `panel.paused` (`PAUSED ...`) and `panel.unpaused` (`UNPAUSED ...`) under `--follow`, to a Session-scoped watch, or when `--kinds` lists them.",
6703
6857
  "`runpane panels last-message --panel <panel-id>` reads a Claude or Codex agent's last reply from its transcript (up to `--limit` characters, default 20,000, keeping the end and reporting `truncated`). It never scrapes the screen: without a transcript it prints `{ ok: false, reason: \"transcript-unavailable\" }` and exits 1.",
6858
+ "`runpane panels conversation --conversation <id> [--source startup|resume|clear|compact]` records which conversation a terminal panel's agent is on (daemon action `runpane:panels:conversation`, request `{ panelId, paneId?, conversationId, source? }`, result `{ ok: true, paneId, panelId, conversationId, source?, sure }`; `sure` is true when the report came since the panel's agent started). It is not an `agent.report` event. The panel comes from `--panel` (with an optional `--pane`), else `PANE_PANEL_ID` and `PANE_SESSION_ID`, as for `runpane report`. `runpane panels conversation --hook` is the command for a Claude Code `SessionStart` hook: it reads the hook's JSON from stdin (`session_id`, `source`; at most 64 KiB, for at most 2 seconds), reports it for `PANE_PANEL_ID`, prints nothing on stdout or stderr, and always exits 0: outside Pane, on bad input, when Pane is not running, and with a Pane that predates the action. Without `--hook` it prints `Recorded conversation <id> for panel <panel-id>.` and fails like any other command.",
6704
6859
  "Commands with a contract `daemonAction` (the `panes` git, script, restore, and move commands, `folders list|create`, and `links open`) call the same Pane daemon channel as the matching button in the app and print `{ ok, data, error }`. Destructive ones add a pane:// `link` to review the Pane.",
6705
6860
  "`runpane links create` builds `pane://open?...` links; opening one in Pane selects what it names and never changes Pane state.",
6706
6861
  "`runpane docs search|read` search and read Pane docs, help, and installed Pane Chat skills offline. They ship in the npm package and the Pane app only.",
@@ -7428,6 +7583,32 @@ exports.RUNPANE_CONTRACT = {
7428
7583
  "5000",
7429
7584
  "--json"
7430
7585
  ],
7586
+ [
7587
+ "panels",
7588
+ "conversation",
7589
+ "--conversation",
7590
+ "0b6c5f0e-8d1a-4f43-9a51-2f7d0c1e9b44",
7591
+ "--source",
7592
+ "resume",
7593
+ "--panel",
7594
+ "panel-1",
7595
+ "--pane",
7596
+ "session-1",
7597
+ "--json"
7598
+ ],
7599
+ [
7600
+ "panels",
7601
+ "conversation",
7602
+ "--conversation=abc",
7603
+ "--source=compact",
7604
+ "--pane-dir",
7605
+ "/tmp/pane"
7606
+ ],
7607
+ [
7608
+ "panels",
7609
+ "conversation",
7610
+ "--hook"
7611
+ ],
7431
7612
  [
7432
7613
  "panes",
7433
7614
  "create",
@@ -8204,6 +8385,40 @@ exports.RUNPANE_CONTRACT = {
8204
8385
  "--choices=[{\"label\":\"A\"}]",
8205
8386
  "--links=[{\"label\":\"Notes\",\"url\":\"https://example.com\"}]",
8206
8387
  "--json"
8388
+ ],
8389
+ [
8390
+ "notify",
8391
+ "--took",
8392
+ "Q-20",
8393
+ "answer",
8394
+ "--json"
8395
+ ],
8396
+ [
8397
+ "notify",
8398
+ "--took=n-1",
8399
+ "question",
8400
+ "--status",
8401
+ "Checking the logs",
8402
+ "--json"
8403
+ ],
8404
+ [
8405
+ "notify",
8406
+ "--took",
8407
+ "Q-20",
8408
+ "--took-as",
8409
+ "answer"
8410
+ ],
8411
+ [
8412
+ "notify",
8413
+ "--update",
8414
+ "Q-20",
8415
+ "--asked",
8416
+ "Can it be undone?",
8417
+ "--what-changed",
8418
+ "- Added: it can be undone",
8419
+ "--questions",
8420
+ "[{\"title\":\"A\",\"choices\":[{\"label\":\"x\"}]},{\"title\":\"B\",\"choices\":[{\"label\":\"y\"}]}]",
8421
+ "--json"
8207
8422
  ]
8208
8423
  ],
8209
8424
  "topLevelHelpIncludes": [
@@ -13103,6 +13318,80 @@ exports.RUNPANE_CONTRACT = {
13103
13318
  }
13104
13319
  ]
13105
13320
  },
13321
+ "panelConversationRequest": {
13322
+ "type": "object",
13323
+ "description": "What runpane panels conversation sends the daemon (runpane:panels:conversation).",
13324
+ "required": [
13325
+ "panelId",
13326
+ "conversationId"
13327
+ ],
13328
+ "properties": {
13329
+ "panelId": {
13330
+ "type": "string",
13331
+ "minLength": 1
13332
+ },
13333
+ "paneId": {
13334
+ "type": "string",
13335
+ "minLength": 1
13336
+ },
13337
+ "conversationId": {
13338
+ "type": "string",
13339
+ "minLength": 1,
13340
+ "maxLength": 256
13341
+ },
13342
+ "source": {
13343
+ "enum": [
13344
+ "startup",
13345
+ "resume",
13346
+ "clear",
13347
+ "compact"
13348
+ ],
13349
+ "description": "What started the conversation, as Claude Code's SessionStart hook names it."
13350
+ }
13351
+ },
13352
+ "additionalProperties": false
13353
+ },
13354
+ "panelConversationResult": {
13355
+ "type": "object",
13356
+ "required": [
13357
+ "ok",
13358
+ "paneId",
13359
+ "panelId",
13360
+ "conversationId",
13361
+ "sure"
13362
+ ],
13363
+ "properties": {
13364
+ "ok": {
13365
+ "const": true
13366
+ },
13367
+ "paneId": {
13368
+ "type": "string"
13369
+ },
13370
+ "panelId": {
13371
+ "type": "string"
13372
+ },
13373
+ "conversationId": {
13374
+ "type": "string"
13375
+ },
13376
+ "source": {
13377
+ "enum": [
13378
+ "startup",
13379
+ "resume",
13380
+ "clear",
13381
+ "compact"
13382
+ ],
13383
+ "description": "What started the conversation, as Claude Code's SessionStart hook names it."
13384
+ },
13385
+ "sure": {
13386
+ "type": "boolean",
13387
+ "description": "True when this report came since the panel's agent started, so Pane knows the panel is on this conversation."
13388
+ },
13389
+ "generation": {
13390
+ "type": "number"
13391
+ }
13392
+ },
13393
+ "additionalProperties": false
13394
+ },
13106
13395
  "agentDoctorResult": {
13107
13396
  "type": "object",
13108
13397
  "required": [
@@ -15250,6 +15539,34 @@ exports.RUNPANE_CONTRACT = {
15250
15539
  "recommended": {
15251
15540
  "type": "boolean",
15252
15541
  "description": "Shade this choice as the one you recommend."
15542
+ },
15543
+ "was": {
15544
+ "type": "string",
15545
+ "minLength": 1,
15546
+ "description": "--update only: the label this choice had before it was reworded. A choice whose label stays but whose detail changed may repeat its label here."
15547
+ }
15548
+ },
15549
+ "additionalProperties": false
15550
+ },
15551
+ "notifySubQuestion": {
15552
+ "description": "One question of an options approval that asks several at once; the person picks one choice.",
15553
+ "type": "object",
15554
+ "required": [
15555
+ "title",
15556
+ "choices"
15557
+ ],
15558
+ "properties": {
15559
+ "title": {
15560
+ "type": "string",
15561
+ "minLength": 1
15562
+ },
15563
+ "choices": {
15564
+ "type": "array",
15565
+ "minItems": 1,
15566
+ "maxItems": 9,
15567
+ "items": {
15568
+ "$ref": "#/jsonSchemas/notifyChoice"
15569
+ }
15253
15570
  }
15254
15571
  },
15255
15572
  "additionalProperties": false
@@ -15273,7 +15590,7 @@ exports.RUNPANE_CONTRACT = {
15273
15590
  "additionalProperties": false
15274
15591
  },
15275
15592
  "notifyLink": {
15276
- "description": "A related file or page shown as a chip on the card: a label and exactly one of path or url.",
15593
+ "description": "A related file, page or approval shown as a chip on the card: a label and exactly one of path, url or approval.",
15277
15594
  "type": "object",
15278
15595
  "required": [
15279
15596
  "label"
@@ -15296,12 +15613,17 @@ exports.RUNPANE_CONTRACT = {
15296
15613
  "type": "string",
15297
15614
  "pattern": "^https?://\\S+$",
15298
15615
  "description": "An http or https page."
15616
+ },
15617
+ "approval": {
15618
+ "type": "string",
15619
+ "minLength": 1,
15620
+ "description": "Another approval, by its id or Q-n; it opens in place, with Back."
15299
15621
  }
15300
15622
  },
15301
15623
  "additionalProperties": false
15302
15624
  },
15303
15625
  "notifyRequest": {
15304
- "description": "What `runpane notify` and `runpane secrets request` send on the runpane:notify daemon channel: the question fields, with relays or aboutSession when they apply, or resume alone. Only `secrets request` sends ui secret.",
15626
+ "description": "What `runpane notify` and `runpane secrets request` send on the runpane:notify daemon channel: the question fields, with relays or aboutSession when they apply; resume alone; took with tookAs (and status); or update with asked, whatChanged and the changed fields. Only `secrets request` sends ui secret.",
15305
15627
  "type": "object",
15306
15628
  "required": [
15307
15629
  "caller"
@@ -15331,6 +15653,15 @@ exports.RUNPANE_CONTRACT = {
15331
15653
  "$ref": "#/jsonSchemas/notifyChoice"
15332
15654
  }
15333
15655
  },
15656
+ "questions": {
15657
+ "type": "array",
15658
+ "minItems": 2,
15659
+ "maxItems": 4,
15660
+ "items": {
15661
+ "$ref": "#/jsonSchemas/notifySubQuestion"
15662
+ },
15663
+ "description": "ui options, instead of choices: several questions, one pick each."
15664
+ },
15334
15665
  "detail": {
15335
15666
  "type": "string"
15336
15667
  },
@@ -15378,6 +15709,38 @@ exports.RUNPANE_CONTRACT = {
15378
15709
  "type": "string",
15379
15710
  "minLength": 1
15380
15711
  },
15712
+ "took": {
15713
+ "type": "string",
15714
+ "minLength": 1,
15715
+ "description": "The approval (id or Q-n) whose reply the reader took; sent with tookAs and nothing but status."
15716
+ },
15717
+ "tookAs": {
15718
+ "enum": [
15719
+ "answer",
15720
+ "question"
15721
+ ],
15722
+ "description": "answer records the reply as the answer; question shows the reader is getting more context."
15723
+ },
15724
+ "status": {
15725
+ "type": "string",
15726
+ "minLength": 1,
15727
+ "description": "tookAs question: what the reader is doing, shown on the approval."
15728
+ },
15729
+ "update": {
15730
+ "type": "string",
15731
+ "minLength": 1,
15732
+ "description": "The approval (id or Q-n) to save a new version of; the question fields sent replace those fields. No ui."
15733
+ },
15734
+ "asked": {
15735
+ "type": "string",
15736
+ "minLength": 1,
15737
+ "description": "update: the person's question, as they typed it."
15738
+ },
15739
+ "whatChanged": {
15740
+ "type": "string",
15741
+ "minLength": 1,
15742
+ "description": "update: what changed, one line per change."
15743
+ },
15381
15744
  "relays": {
15382
15745
  "type": "string",
15383
15746
  "minLength": 1,
@@ -15423,11 +15786,79 @@ exports.RUNPANE_CONTRACT = {
15423
15786
  "properties": {
15424
15787
  "answer": {
15425
15788
  "type": "string",
15426
- "description": "options: the chosen label. ask: the typed answer."
15789
+ "description": "options: the chosen label (with questions, the picks joined with \" · \"). ask: the typed answer."
15427
15790
  },
15428
15791
  "note": {
15429
15792
  "type": "string",
15430
15793
  "description": "What the person typed with their answer."
15794
+ },
15795
+ "answers": {
15796
+ "type": "array",
15797
+ "items": {
15798
+ "type": "string"
15799
+ },
15800
+ "description": "options with questions: one pick per question, in order."
15801
+ }
15802
+ },
15803
+ "additionalProperties": false
15804
+ },
15805
+ {
15806
+ "type": "object",
15807
+ "description": "The person typed a reply: it may answer the question or ask one. The approval keeps waiting; say which with `runpane notify --took <replyId> answer|question` (see next).",
15808
+ "required": [
15809
+ "reply",
15810
+ "id",
15811
+ "replyId",
15812
+ "next"
15813
+ ],
15814
+ "properties": {
15815
+ "reply": {
15816
+ "type": "string",
15817
+ "description": "What the person typed."
15818
+ },
15819
+ "picks": {
15820
+ "type": "array",
15821
+ "items": {
15822
+ "type": "string"
15823
+ },
15824
+ "description": "What they picked with it, one label per question."
15825
+ },
15826
+ "id": {
15827
+ "type": "string",
15828
+ "minLength": 1,
15829
+ "description": "The approval, for --took and --update."
15830
+ },
15831
+ "replyId": {
15832
+ "type": "string",
15833
+ "minLength": 1,
15834
+ "description": "This call's private id for the reply (not the id other screens show). Pass it to --took and --update: only this call was given it, so it lets its agent continue, also from outside a Pane tab."
15835
+ },
15836
+ "next": {
15837
+ "type": "string"
15838
+ }
15839
+ },
15840
+ "additionalProperties": false
15841
+ },
15842
+ {
15843
+ "type": "object",
15844
+ "description": "--took: how the reply was recorded.",
15845
+ "required": [
15846
+ "took",
15847
+ "id"
15848
+ ],
15849
+ "properties": {
15850
+ "took": {
15851
+ "enum": [
15852
+ "answer",
15853
+ "question"
15854
+ ]
15855
+ },
15856
+ "id": {
15857
+ "type": "string",
15858
+ "minLength": 1
15859
+ },
15860
+ "next": {
15861
+ "type": "string"
15431
15862
  }
15432
15863
  },
15433
15864
  "additionalProperties": false
@@ -19533,6 +19964,61 @@ exports.RUNPANE_CONTRACT = {
19533
19964
  "A worker that ran `runpane report` already handed back its state, PR, head, and summary; read those with `agents status` before reading the whole reply."
19534
19965
  ]
19535
19966
  },
19967
+ "panels conversation": {
19968
+ "name": "panels conversation",
19969
+ "summary": "Record which conversation a terminal panel's agent is on, so Switch to chat and restarts open that one. A Claude Code SessionStart hook runs it with --hook.",
19970
+ "details": "Pane calls this for you: the Claude Code SessionStart hook that Agent Farm and Pane's plain claude tabs install runs `runpane panels conversation --hook` on start, /resume, /clear and compact. Run it yourself only to tell Pane a panel is on a conversation it could not learn from the hook.",
19971
+ "requiresPaneDaemon": true,
19972
+ "mutates": true,
19973
+ "arguments": [
19974
+ {
19975
+ "name": "--conversation",
19976
+ "value": "<id>",
19977
+ "required": false,
19978
+ "description": "Conversation (agent session) id the panel is on."
19979
+ },
19980
+ {
19981
+ "name": "--source",
19982
+ "value": "<startup|resume|clear|compact>",
19983
+ "required": false,
19984
+ "description": "What started the conversation."
19985
+ },
19986
+ {
19987
+ "name": "--panel",
19988
+ "value": "<panel-id>",
19989
+ "required": false,
19990
+ "description": "Panel id; defaults to PANE_PANEL_ID inside a Pane terminal."
19991
+ },
19992
+ {
19993
+ "name": "--pane",
19994
+ "value": "<pane-id>",
19995
+ "required": false,
19996
+ "description": "Pane id, with --panel; defaults to PANE_SESSION_ID."
19997
+ },
19998
+ {
19999
+ "name": "--json",
20000
+ "required": false,
20001
+ "description": "Print machine-readable output."
20002
+ },
20003
+ {
20004
+ "name": "--pane-dir",
20005
+ "value": "<path>",
20006
+ "required": false,
20007
+ "description": "Connect to a specific Pane data directory."
20008
+ }
20009
+ ],
20010
+ "examples": [
20011
+ "runpane panels conversation --conversation <id> --source resume --json"
20012
+ ],
20013
+ "jsonSchemas": [
20014
+ "panelConversationRequest",
20015
+ "panelConversationResult"
20016
+ ],
20017
+ "notes": [
20018
+ "`sure` in the result is true when the report came since the panel's agent started; a Switch to chat or restart opens a sure conversation, and otherwise opens the folder's most recent one.",
20019
+ "`--hook` reads the hook's stdin, prints nothing and always exits 0; it is not offered over MCP."
20020
+ ]
20021
+ },
19536
20022
  "panels create": {
19537
20023
  "name": "panels create",
19538
20024
  "summary": "Open a new agent tab (reviewer, auditor, QA, fix or helper) inside an existing Pane, sharing its worktree. 1 feature = 1 worktree = 1 branch = 1 Pane; reviews, audits, fixes and QA for it are tabs in that Pane: use this, not panes create, for any later agent on existing work.",
@@ -19561,7 +20047,7 @@ exports.RUNPANE_CONTRACT = {
19561
20047
  {
19562
20048
  "name": "--chat",
19563
20049
  "required": false,
19564
- "description": "Open --agent claude or codex as a chat tab (ACP, no terminal) instead of a terminal tab. Needs chat tabs on in Settings > Advanced."
20050
+ "description": "Open --agent claude or codex as a chat tab (ACP, no terminal) instead of a terminal tab. Needs chat tabs on in Settings > AI & Agents."
19565
20051
  },
19566
20052
  {
19567
20053
  "name": "--agent-farm",
@@ -22542,7 +23028,7 @@ exports.RUNPANE_CONTRACT = {
22542
23028
  "name": "--ui",
22543
23029
  "value": "<options|approve|ask|info>",
22544
23030
  "required": false,
22545
- "description": "options: pick one of choices. approve: Approve or Deny. ask: a typed answer. info: an update that returns at once. Required unless resume.",
23031
+ "description": "options: pick one of choices. approve: Approve or Deny. ask: a typed answer. info: an update that returns at once. Required unless resume, took or update.",
22546
23032
  "schema": {
22547
23033
  "type": "string",
22548
23034
  "enum": [
@@ -22557,19 +23043,19 @@ exports.RUNPANE_CONTRACT = {
22557
23043
  "name": "--title",
22558
23044
  "value": "<text>",
22559
23045
  "required": false,
22560
- "description": "The question or update in one line; long titles wrap to 3 lines. Required unless resume."
23046
+ "description": "The question or update in one line, about 80 characters; long titles wrap to 3 lines. Required unless resume, took or update."
22561
23047
  },
22562
23048
  {
22563
23049
  "name": "--context",
22564
23050
  "value": "<text>",
22565
23051
  "required": false,
22566
- "description": "Background the person can open under Details."
23052
+ "description": "The card's subtitle: one or two sentences on why it matters, up to 240 characters."
22567
23053
  },
22568
23054
  {
22569
23055
  "name": "--choices",
22570
23056
  "value": "<json>",
22571
23057
  "required": false,
22572
- "description": "ui options only, and required there: 1 to 9 choices. The answer is the chosen label. Mark at most the one you recommend.",
23058
+ "description": "ui options only, and required there unless questions: 1 to 9 choices. The answer is the chosen label. Say what each does in detail, and mark the one you recommend. With update, a reworded choice adds was, its old label.",
22573
23059
  "schema": {
22574
23060
  "type": "array",
22575
23061
  "minItems": 1,
@@ -22621,7 +23107,7 @@ exports.RUNPANE_CONTRACT = {
22621
23107
  "name": "--links",
22622
23108
  "value": "<json>",
22623
23109
  "required": false,
22624
- "description": "Any ui: up to 6 related files or pages, shown as chips on the card. A file is {label, path}, on this machine; a relative path resolves against the working directory. A page is {label, url}, http or https.",
23110
+ "description": "Any ui: up to 6 related files, pages or approvals, shown as chips on the card. A file is {label, path}, on this machine; a relative path resolves against the working directory. A page is {label, url}, http or https. Another approval is {label, approval}, its id or Q-n.",
22625
23111
  "schema": {
22626
23112
  "type": "array",
22627
23113
  "maxItems": 6,
@@ -22642,6 +23128,63 @@ exports.RUNPANE_CONTRACT = {
22642
23128
  "required": false,
22643
23129
  "description": "Autopilot's own item: the Session it is about, shown as its connected Session. Without it, the item links to Autopilot's chat."
22644
23130
  },
23131
+ {
23132
+ "name": "--questions",
23133
+ "value": "<json>",
23134
+ "required": false,
23135
+ "description": "ui options only, instead of choices: 2 to 4 questions asked at once, each with 1 to 9 choices and one pick. The result's answers holds one label per question; answer joins them with \" · \".",
23136
+ "schema": {
23137
+ "type": "array",
23138
+ "minItems": 2,
23139
+ "maxItems": 4,
23140
+ "items": {
23141
+ "$ref": "#/jsonSchemas/notifySubQuestion"
23142
+ }
23143
+ }
23144
+ },
23145
+ {
23146
+ "name": "--took",
23147
+ "value": "<id|Q-n>",
23148
+ "required": false,
23149
+ "description": "After a reply result or a `reply:` line: the approval's id or Q-n, with tookAs answer (record the reply as the answer) or question (it asked something; find out, then call update). Pass no question fields."
23150
+ },
23151
+ {
23152
+ "name": "--took-as",
23153
+ "value": "<answer|question>",
23154
+ "required": false,
23155
+ "description": "With took: answer or question. On the command line it can follow the id instead (`--took Q-20 answer`).",
23156
+ "schema": {
23157
+ "type": "string",
23158
+ "enum": [
23159
+ "answer",
23160
+ "question"
23161
+ ]
23162
+ }
23163
+ },
23164
+ {
23165
+ "name": "--status",
23166
+ "value": "<text>",
23167
+ "required": false,
23168
+ "description": "With took question: what you are doing about it, shown on the approval. Defaults to \"Getting more context…\"."
23169
+ },
23170
+ {
23171
+ "name": "--update",
23172
+ "value": "<id|Q-n>",
23173
+ "required": false,
23174
+ "description": "After you took a reply as a question and found out: the approval's id or Q-n. Saves a new version with any of title, context, choices, questions and links you pass (the rest stay), shows it as updated, and waits on it like any notify call. Needs asked and whatChanged; takes no ui."
23175
+ },
23176
+ {
23177
+ "name": "--asked",
23178
+ "value": "<text>",
23179
+ "required": false,
23180
+ "description": "With update: the person's question, as they typed it."
23181
+ },
23182
+ {
23183
+ "name": "--what-changed",
23184
+ "value": "<text>",
23185
+ "required": false,
23186
+ "description": "With update: what changed, one line per change."
23187
+ },
22645
23188
  {
22646
23189
  "name": "--resume",
22647
23190
  "value": "<id>",
@@ -22667,6 +23210,10 @@ exports.RUNPANE_CONTRACT = {
22667
23210
  "runpane notify --ui info --title \"PR #812 is ready for review\" --action '{\"label\":\"Open PR\",\"url\":\"https://github.com/org/repo/pull/812\"}' --json",
22668
23211
  "runpane notify --ui approve --title \"Ship the release notes?\" --links '[{\"label\":\"Notes\",\"path\":\"docs/RELEASE.md\"},{\"label\":\"PR #812\",\"url\":\"https://github.com/org/repo/pull/812\"}]' --json",
22669
23212
  "runpane notify --relays in-1a2b3c4d --ui options --title \"Q-39: Run the script?\" --choices '[{\"label\":\"Run it\",\"recommended\":true},{\"label\":\"Hold\"}]' --json",
23213
+ "runpane notify --ui options --title \"Ship 2.5 today: which parts go out?\" --questions '[{\"title\":\"Release notes\",\"choices\":[{\"label\":\"Ship as written\",\"recommended\":true},{\"label\":\"Hold\"}]},{\"title\":\"Intel Mac build\",\"choices\":[{\"label\":\"Include it\"},{\"label\":\"Skip it\"}]}]' --json",
23214
+ "runpane notify --took Q-20 answer --json",
23215
+ "runpane notify --took Q-20 question --status \"Checking whether it can be undone\" --json",
23216
+ "runpane notify --update Q-20 --asked \"Can it be undone?\" --what-changed \"Added: Settings > Search turns it off again\" --context \"Search takes 4 s; the index brings it under 100 ms. It can be undone from Settings.\" --json",
22670
23217
  "runpane notify --resume n-4f2a --json"
22671
23218
  ],
22672
23219
  "jsonSchemas": [
@@ -22675,13 +23222,15 @@ exports.RUNPANE_CONTRACT = {
22675
23222
  ],
22676
23223
  "notes": [
22677
23224
  "Write the card the way the pane MCP server's instructions say: in plain words, what the work is for, what just happened, and what you need.",
22678
- "Results: options returns {answer: <chosen label>, note?}; approve returns {approved: true|false, note?}; ask returns {answer}; info returns {delivered: \"screen\"|\"inbox\"}.",
23225
+ "Results: options returns {answer: <chosen label>, note?}, with questions also answers (one label per question); approve returns {approved: true|false, note?}; ask returns {answer}; info returns {delivered: \"screen\"|\"inbox\"}.",
23226
+ "A result of {reply, picks?, id, replyId, next} means the person typed a reply instead of only picking: it may answer the question or ask one. Read it, then call `runpane notify --took <replyId> answer` to record it as the answer, or `runpane notify --took <replyId> question` and find out, then `runpane notify --update <replyId> --asked \"<their question>\" --what-changed \"<one line per change>\"` with whatever changed, instead of asking again. With no open call the reply reaches your tab as a `reply:` line; `correction:` lines fix how it was taken. --took returns {took, id, next?}. Use its replyId rather than the Q-n: only this call was given it, so it works from outside a Pane tab too.",
23227
+ "Only the reply's reader may run took and update: the asker, the orchestrator that relayed it, or Autopilot. Anyone else gets ERR_NOTIFY_NOT_READER.",
22679
23228
  "A result of {waiting: true, id} means the question is still on screen and your client would otherwise time out: call `runpane notify --resume <id>` right away to keep waiting. After 15 minutes on this loop Pane gives up and returns unavailable.",
22680
23229
  "A result of {unavailable, next} means nobody can answer through Pane right now (Pane is not running, Notify is off, or the wait ended): ask in the terminal instead. It is a result, not an error.",
22681
23230
  "Inside a Pane terminal the question names its Pane and panel (PANE_SESSION_ID and PANE_PANEL_ID); elsewhere it names the working directory.",
22682
23231
  "An older Pane ignores links and shows the card without them.",
22683
23232
  "With relays the call waits on the worker's card as on any notify, and the answer also goes straight to the worker's tab as `answer: Q-n → <answer> (by you)`. Then record it: `runpane inbox ack <item> --decision <D-n>`.",
22684
- "Invalid input, such as choices with ui ask or 10 choices, fails with a message naming the field, and nothing is shown."
23233
+ "Invalid input, such as choices with ui ask, 10 choices, or ui with took or update, fails with a message naming the field, and nothing is shown."
22685
23234
  ]
22686
23235
  },
22687
23236
  "autopilot status": {
@@ -23002,7 +23551,7 @@ exports.RUNPANE_CONTRACT = {
23002
23551
  "name": "--context",
23003
23552
  "value": "<text>",
23004
23553
  "required": false,
23005
- "description": "Background the person can open under Details."
23554
+ "description": "The card's subtitle: one or two sentences on why it matters, up to 240 characters."
23006
23555
  },
23007
23556
  {
23008
23557
  "name": "--choices",
@@ -23076,7 +23625,7 @@ exports.RUNPANE_CONTRACT = {
23076
23625
  "",
23077
23626
  "1 feature = 1 worktree = 1 branch = 1 Pane; reviews, audits, fixes and QA for it are tabs in that Pane. Open later agents with `runpane panels create --pane <id>` (MCP: `panels_create` or `agents_start` with `pane`), not a new Pane.",
23078
23627
  "",
23079
- "When you need the person (a choice, an approval, a short answer), call the `notify` MCP tool (or `runpane notify`) instead of asking in the terminal. If it returns `waiting`, call it again with `resume`; if it returns `unavailable`, ask in the terminal. A worker in a Pane Session (`PANE_SESSION_DIR` set, `PANE_ORCHESTRATION_SESSION_ID` unset) doesn't call `notify`: it reports blocked to its orchestrator with `runpane report --state blocked --question \"<question>\"`. Its orchestrator relays that card with `runpane notify --relays <item> ...`, the answer goes straight to the worker's tab, and the orchestrator records it with `runpane inbox ack <item> --decision <D-n>`. For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`; if that returns `unavailable`, ask the person to save it in Pane under Settings > Secrets.",
23628
+ "When you need the person (a choice, an approval, a short answer), call the `notify` MCP tool (or `runpane notify`) instead of asking in the terminal. If it returns `waiting`, call it again with `resume`; if it returns `unavailable`, ask in the terminal. Claude's own card (AskUserQuestion) is only for a quick question in the chat the person is typing in, about their latest message, that steers only this turn; everything else is an approval card, and Codex and other agents always use one. A worker in a Pane Session (`PANE_SESSION_DIR` set, `PANE_ORCHESTRATION_SESSION_ID` unset) doesn't call `notify`: it reports blocked to its orchestrator with `runpane report --state blocked --question \"<question>\"`. Its orchestrator relays that card with `runpane notify --relays <item> ...`, the answer goes straight to the worker's tab, and the orchestrator records it with `runpane inbox ack <item> --decision <D-n>`. For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`; if that returns `unavailable`, ask the person to save it in Pane under Settings > Secrets.",
23080
23629
  "",
23081
23630
  "CLI: `npm i -g runpane` (or `npx --yes runpane@latest`), then `runpane doctor --json`. Full command reference: `runpane agent-context --json`.",
23082
23631
  "",
@@ -23084,11 +23633,13 @@ exports.RUNPANE_CONTRACT = {
23084
23633
  ],
23085
23634
  "notifyGuidance": {
23086
23635
  "rules": [
23636
+ "Which card: Claude's own card (AskUserQuestion) only when you are answering the person's latest message in the chat they are typing in, the answer only steers this turn, and the question needs no context, links or Summary. Everything else is an approval card (`notify`, or `runpane report` for a worker): a worker's question in a Session, a question a Session orchestrator relays, and anything that waits, blocks other work, is recorded as a decision or approves an ask-first action. Unsure? Use an approval card. Codex and other agents without a built-in card always do.",
23087
23637
  "In a Session, only its orchestrator asks the person. A worker in a Session (`PANE_SESSION_DIR` is set and `PANE_ORCHESTRATION_SESSION_ID` isn't, or your brief names an orchestrator or a parent status file) doesn't call `notify`: it reports blocked with `runpane report --state blocked --question \"<question>\"`, and the answer reaches its tab as `answer: Q-n → <answer> (by you)`; `closed: Q-n (by you)` and `correction: Q-n → <answer> (by you)` lines are the person's word too. A Session orchestrator (`PANE_ORCHESTRATION_SESSION_ID` is set) posts each item that waits on the person once, as a background `runpane notify ... --json`, as its pane-orchestration guide says. Any other agent calls `notify`.",
23088
23638
  "Ask only what you can't find out yourself.",
23089
23639
  "Put related questions in one card.",
23090
23640
  "Send `info` rarely, only for what the person must know now.",
23091
- "Keep titles short and choices to a few words.",
23641
+ "Write the card as its Summary: a title of about 80 to 100 characters on one line; context as a subtitle of one or two sentences saying why it matters; 2 to 4 choices, each saying what it does, with exactly one recommended; links to every file, page or approval it mentions. Pane refuses a title over 160 characters or with a line break, and two recommended choices.",
23642
+ "A `reply:` line (or a `{reply, replyId}` result) is the person's typed reply: an answer or a question. If it answers, run `runpane notify --took <id|Q-n> answer`. If it asks, run `--took <id|Q-n> question`, find out, then `runpane notify --update <id|Q-n> --asked \"<their question>\" --what-changed \"<one line per change>\"` with any changed `--title`, `--context`, `--choices`, `--questions` or `--links` (a reworded choice adds `\"was\"`, its old label) instead of asking again. A `correction:` line fixes how it was taken. From a `{reply, replyId}` result, pass its replyId to --took and --update.",
23092
23643
  "For an API key, token or password, call `secrets_request` (or `runpane secrets request`), never `ask`."
23093
23644
  ],
23094
23645
  "cardRule": "The person is juggling many tasks and has lost the thread. In plain words, say what the work is for (the outcome, not the file), what just happened, and what you need. For a decision, give the options and what each one means. Pane already shows which Pane and agent sent it.",