flow-workflows 0.116.0 → 0.116.1

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.
@@ -17,7 +17,7 @@ Every `$flow-*` command assumes these rules. They are stated once, here, so a co
17
17
  carries what is specific to its phase. Read this once per session; a command that says "load
18
18
  `flow-core`" means this file.
19
19
 
20
- **This file belongs to flow `0.116.0`.** Compare it once, at the start of the session, against
20
+ **This file belongs to flow `0.116.1`.** Compare it once, at the start of the session, against
21
21
  `version` in `~/.claude/flow/.claude-plugin/plugin.json`. The two differing means the session
22
22
  is running a **mixture** — the commands from one copy of the plugin, these shared rules from another
23
23
  — which is exactly what happens when a branch or a release candidate is loaded over an installed
@@ -399,7 +399,7 @@ Each place a command would have asked resolves one of these ways:
399
399
  add `{ "key": "unattended:<site>", "default": "<resolution>", "phase": "<phase>" }` to
400
400
  `meta.json.defaults_used[]` (the prefix says it is not a FLOW key), and continue.
401
401
  - **question** — a decision only a person can take: the question stop below, `ask --gate <site>`,
402
- the panel's `attention` set to `wait`, end of the run.
402
+ the question as the panel's `decision` (it raises `wait`), end of the run.
403
403
  - **blocked** — something the run cannot get past (the environment, a tool, a check that keeps
404
404
  failing): `blocked --reason-file` with one line saying what a person or the orchestrator must
405
405
  fix, `attention: block`, end of the run.
@@ -680,7 +680,7 @@ language. So a publication is two moves:
680
680
 
681
681
  ```json
682
682
  {"phase": "build", "now": "unit suite over #2", "next": "review #2",
683
- "decision": "confirm the MR/PR body before I create it", "attention": "wait",
683
+ "decision": "confirm the MR/PR body before I create it",
684
684
  "blocks": [{"text": "sibling-repo still needs the endpoint contract", "link": "https://…"}],
685
685
  "stale_after_minutes": 45,
686
686
  "labels": {"now": "Ahora", "next": "Siguiente", "decision": "Decisión", "open": "Abierto",
@@ -691,7 +691,9 @@ language. So a publication is two moves:
691
691
  Every field is optional. `phase` is the phase **running now**. `now` is what is running — never
692
692
  the train restated (*"MR/PR open, waiting for review"* is what the train line already says).
693
693
  `next` is the next phase or MR/PR — never housekeeping (*archive the work*, *remove the
694
- worktree*). `decision` only while parked on the user; it sets `attention: wait` by itself.
694
+ worktree*). `decision` only while parked on the user; it is the only thing that raises `attention: wait`.
695
+ `attention` itself is written only for `block` with no `blocks` line, or `done`: a written
696
+ `wait` with no `decision` claims nobody.
695
697
  `blocks` are what stops the work on somebody else — a sibling repo with `contract_handoff:
696
698
  pending`, a red pipeline, an unmerged dependency — each with its `link` when it names an MR/PR.
697
699
  `labels` carry the fixed words in **the language of the work's artifacts** — also `mrs` (the
@@ -709,7 +711,12 @@ language. So a publication is two moves:
709
711
  **Where the plugin's hooks run — Claude Code and Codex — the render also happens on its own**: a
710
712
  `PostToolUse` hook renders the panel again whenever `meta.json`, the plan, or `panel-input.json` is
711
713
  newer than `panel.json` and than that branch's last attempt — a render that wrote nothing is not
712
- retried until one of them changes again. Ticking a step in the plan *is* publishing it there. The hook cannot reach
714
+ retried until one of them changes again. Ticking a step in the plan *is* publishing it there. **An answered question is too**: when the
715
+ user answers the harness's question tool (`AskUserQuestion`, Codex's `request_user_input`) and the
716
+ input holds a `decision`, the hook copies the input aside as answered (`panel-answered.json`) and
717
+ renders: while the input is still that copy, its `decision` and `wait` claim nobody. Your input is
718
+ never rewritten — the next one you write is newer than the answer and asks again. A question left
719
+ unanswered, rejected or timed out changes nothing. The hook cannot reach
713
720
  the terminal's MCP tools, which is what `panel.publish_cmd` is for (§4.2).
714
721
 
715
722
  **The CLI unavailable** — no network for npx, a sandbox that blocks it, a non-zero exit with no
@@ -818,7 +825,9 @@ halfway is not shown as finished. When the stretch will outlast the ~30 min stal
818
825
  `stale_after_minutes` in the input to what it will really take; (d) wherever `## Close` updates
819
826
  `meta.json`; (e) **the moment a question is answered or a gate is cleared** — before you resume the
820
827
  work: drop `decision` from the input, move `now` on, render. A panel still asking what the user
821
- already answered is worse than one that never asked; (f) **each plan step that lands** — tick it in
828
+ already answered is worse than one that never asked. Where the hook runs, an answer
829
+ given through the question tool already did it; a question asked in prose, or a gate cleared
830
+ another way, did not; (f) **each plan step that lands** — tick it in
822
831
  the phase artifact, move `now` on, render without `--forge`. Where the plugin's hook runs, the tick
823
832
  and the input change already rendered it; publish over the tools anyway when they are there.
824
833
 
@@ -162,5 +162,6 @@ and the `done` of the table above.
162
162
  ## 3. Close
163
163
 
164
164
  Nothing to write here beyond the routing above — the phase it hands to owns the artifacts, the
165
- panel and the closing order. When the route ended the run itself (`ask` → `wait`, `blocked` → `block`,
166
- `done` → `done`), publish the panel with that `attention` (flow-core §4) and print the §3 header.
165
+ panel and the closing order. When the route ended the run itself, publish the panel (flow-core §4) —
166
+ `ask` → the question as `decision`, which raises `wait`; `blocked` → `attention: block`; `done` →
167
+ `attention: done` — and print the §3 header.
@@ -16,7 +16,7 @@ Every `/flow:*` command assumes these rules. They are stated once, here, so a co
16
16
  carries what is specific to its phase. Read this once per session; a command that says "load
17
17
  `flow-core`" means this file.
18
18
 
19
- **This file belongs to flow `0.116.0`.** Compare it once, at the start of the session, against
19
+ **This file belongs to flow `0.116.1`.** Compare it once, at the start of the session, against
20
20
  `version` in `~/.claude/flow/.claude-plugin/plugin.json`. The two differing means the session
21
21
  is running a **mixture** — the commands from one copy of the plugin, these shared rules from another
22
22
  — which is exactly what happens when a branch or a release candidate is loaded over an installed
@@ -398,7 +398,7 @@ Each place a command would have asked resolves one of these ways:
398
398
  add `{ "key": "unattended:<site>", "default": "<resolution>", "phase": "<phase>" }` to
399
399
  `meta.json.defaults_used[]` (the prefix says it is not a FLOW key), and continue.
400
400
  - **question** — a decision only a person can take: the question stop below, `ask --gate <site>`,
401
- the panel's `attention` set to `wait`, end of the run.
401
+ the question as the panel's `decision` (it raises `wait`), end of the run.
402
402
  - **blocked** — something the run cannot get past (the environment, a tool, a check that keeps
403
403
  failing): `blocked --reason-file` with one line saying what a person or the orchestrator must
404
404
  fix, `attention: block`, end of the run.
@@ -679,7 +679,7 @@ language. So a publication is two moves:
679
679
 
680
680
  ```json
681
681
  {"phase": "build", "now": "unit suite over #2", "next": "review #2",
682
- "decision": "confirm the MR/PR body before I create it", "attention": "wait",
682
+ "decision": "confirm the MR/PR body before I create it",
683
683
  "blocks": [{"text": "sibling-repo still needs the endpoint contract", "link": "https://…"}],
684
684
  "stale_after_minutes": 45,
685
685
  "labels": {"now": "Ahora", "next": "Siguiente", "decision": "Decisión", "open": "Abierto",
@@ -690,7 +690,9 @@ language. So a publication is two moves:
690
690
  Every field is optional. `phase` is the phase **running now**. `now` is what is running — never
691
691
  the train restated (*"MR/PR open, waiting for review"* is what the train line already says).
692
692
  `next` is the next phase or MR/PR — never housekeeping (*archive the work*, *remove the
693
- worktree*). `decision` only while parked on the user; it sets `attention: wait` by itself.
693
+ worktree*). `decision` only while parked on the user; it is the only thing that raises `attention: wait`.
694
+ `attention` itself is written only for `block` with no `blocks` line, or `done`: a written
695
+ `wait` with no `decision` claims nobody.
694
696
  `blocks` are what stops the work on somebody else — a sibling repo with `contract_handoff:
695
697
  pending`, a red pipeline, an unmerged dependency — each with its `link` when it names an MR/PR.
696
698
  `labels` carry the fixed words in **the language of the work's artifacts** — also `mrs` (the
@@ -708,7 +710,12 @@ language. So a publication is two moves:
708
710
  **Where the plugin's hooks run — Claude Code and Codex — the render also happens on its own**: a
709
711
  `PostToolUse` hook renders the panel again whenever `meta.json`, the plan, or `panel-input.json` is
710
712
  newer than `panel.json` and than that branch's last attempt — a render that wrote nothing is not
711
- retried until one of them changes again. Ticking a step in the plan *is* publishing it there. The hook cannot reach
713
+ retried until one of them changes again. Ticking a step in the plan *is* publishing it there. **An answered question is too**: when the
714
+ user answers the harness's question tool (`AskUserQuestion`, Codex's `request_user_input`) and the
715
+ input holds a `decision`, the hook copies the input aside as answered (`panel-answered.json`) and
716
+ renders: while the input is still that copy, its `decision` and `wait` claim nobody. Your input is
717
+ never rewritten — the next one you write is newer than the answer and asks again. A question left
718
+ unanswered, rejected or timed out changes nothing. The hook cannot reach
712
719
  the terminal's MCP tools, which is what `panel.publish_cmd` is for (§4.2).
713
720
 
714
721
  **The CLI unavailable** — no network for npx, a sandbox that blocks it, a non-zero exit with no
@@ -817,7 +824,9 @@ halfway is not shown as finished. When the stretch will outlast the ~30 min stal
817
824
  `stale_after_minutes` in the input to what it will really take; (d) wherever `## Close` updates
818
825
  `meta.json`; (e) **the moment a question is answered or a gate is cleared** — before you resume the
819
826
  work: drop `decision` from the input, move `now` on, render. A panel still asking what the user
820
- already answered is worse than one that never asked; (f) **each plan step that lands** — tick it in
827
+ already answered is worse than one that never asked. Where the hook runs, an answer
828
+ given through the question tool already did it; a question asked in prose, or a gate cleared
829
+ another way, did not; (f) **each plan step that lands** — tick it in
821
830
  the phase artifact, move `now` on, render without `--forge`. Where the plugin's hook runs, the tick
822
831
  and the input change already rendered it; publish over the tools anyway when they are there.
823
832
 
@@ -158,6 +158,7 @@ and the `done` of the table above.
158
158
  ## 3. Close
159
159
 
160
160
  Nothing to write here beyond the routing above — the phase it hands to owns the artifacts, the
161
- panel and the closing order. When the route ended the run itself (`ask` → `wait`, `blocked` → `block`,
162
- `done` → `done`), publish the panel with that `attention` (flow-core §4) and print the §3 header.
161
+ panel and the closing order. When the route ended the run itself, publish the panel (flow-core §4) —
162
+ `ask` → the question as `decision`, which raises `wait`; `blocked` → `attention: block`; `done` →
163
+ `attention: done` — and print the §3 header.
163
164
  """
@@ -17,7 +17,7 @@ Every `/flow-*` command assumes these rules. They are stated once, here, so a co
17
17
  carries what is specific to its phase. Read this once per session; a command that says "load
18
18
  `flow-core`" means this file.
19
19
 
20
- **This file belongs to flow `0.116.0`.** Compare it once, at the start of the session, against
20
+ **This file belongs to flow `0.116.1`.** Compare it once, at the start of the session, against
21
21
  `version` in `~/.claude/flow/.claude-plugin/plugin.json`. The two differing means the session
22
22
  is running a **mixture** — the commands from one copy of the plugin, these shared rules from another
23
23
  — which is exactly what happens when a branch or a release candidate is loaded over an installed
@@ -399,7 +399,7 @@ Each place a command would have asked resolves one of these ways:
399
399
  add `{ "key": "unattended:<site>", "default": "<resolution>", "phase": "<phase>" }` to
400
400
  `meta.json.defaults_used[]` (the prefix says it is not a FLOW key), and continue.
401
401
  - **question** — a decision only a person can take: the question stop below, `ask --gate <site>`,
402
- the panel's `attention` set to `wait`, end of the run.
402
+ the question as the panel's `decision` (it raises `wait`), end of the run.
403
403
  - **blocked** — something the run cannot get past (the environment, a tool, a check that keeps
404
404
  failing): `blocked --reason-file` with one line saying what a person or the orchestrator must
405
405
  fix, `attention: block`, end of the run.
@@ -680,7 +680,7 @@ language. So a publication is two moves:
680
680
 
681
681
  ```json
682
682
  {"phase": "build", "now": "unit suite over #2", "next": "review #2",
683
- "decision": "confirm the MR/PR body before I create it", "attention": "wait",
683
+ "decision": "confirm the MR/PR body before I create it",
684
684
  "blocks": [{"text": "sibling-repo still needs the endpoint contract", "link": "https://…"}],
685
685
  "stale_after_minutes": 45,
686
686
  "labels": {"now": "Ahora", "next": "Siguiente", "decision": "Decisión", "open": "Abierto",
@@ -691,7 +691,9 @@ language. So a publication is two moves:
691
691
  Every field is optional. `phase` is the phase **running now**. `now` is what is running — never
692
692
  the train restated (*"MR/PR open, waiting for review"* is what the train line already says).
693
693
  `next` is the next phase or MR/PR — never housekeeping (*archive the work*, *remove the
694
- worktree*). `decision` only while parked on the user; it sets `attention: wait` by itself.
694
+ worktree*). `decision` only while parked on the user; it is the only thing that raises `attention: wait`.
695
+ `attention` itself is written only for `block` with no `blocks` line, or `done`: a written
696
+ `wait` with no `decision` claims nobody.
695
697
  `blocks` are what stops the work on somebody else — a sibling repo with `contract_handoff:
696
698
  pending`, a red pipeline, an unmerged dependency — each with its `link` when it names an MR/PR.
697
699
  `labels` carry the fixed words in **the language of the work's artifacts** — also `mrs` (the
@@ -709,7 +711,12 @@ language. So a publication is two moves:
709
711
  **Where the plugin's hooks run — Claude Code and Codex — the render also happens on its own**: a
710
712
  `PostToolUse` hook renders the panel again whenever `meta.json`, the plan, or `panel-input.json` is
711
713
  newer than `panel.json` and than that branch's last attempt — a render that wrote nothing is not
712
- retried until one of them changes again. Ticking a step in the plan *is* publishing it there. The hook cannot reach
714
+ retried until one of them changes again. Ticking a step in the plan *is* publishing it there. **An answered question is too**: when the
715
+ user answers the harness's question tool (`AskUserQuestion`, Codex's `request_user_input`) and the
716
+ input holds a `decision`, the hook copies the input aside as answered (`panel-answered.json`) and
717
+ renders: while the input is still that copy, its `decision` and `wait` claim nobody. Your input is
718
+ never rewritten — the next one you write is newer than the answer and asks again. A question left
719
+ unanswered, rejected or timed out changes nothing. The hook cannot reach
713
720
  the terminal's MCP tools, which is what `panel.publish_cmd` is for (§4.2).
714
721
 
715
722
  **The CLI unavailable** — no network for npx, a sandbox that blocks it, a non-zero exit with no
@@ -818,7 +825,9 @@ halfway is not shown as finished. When the stretch will outlast the ~30 min stal
818
825
  `stale_after_minutes` in the input to what it will really take; (d) wherever `## Close` updates
819
826
  `meta.json`; (e) **the moment a question is answered or a gate is cleared** — before you resume the
820
827
  work: drop `decision` from the input, move `now` on, render. A panel still asking what the user
821
- already answered is worse than one that never asked; (f) **each plan step that lands** — tick it in
828
+ already answered is worse than one that never asked. Where the hook runs, an answer
829
+ given through the question tool already did it; a question asked in prose, or a gate cleared
830
+ another way, did not; (f) **each plan step that lands** — tick it in
822
831
  the phase artifact, move `now` on, render without `--forge`. Where the plugin's hook runs, the tick
823
832
  and the input change already rendered it; publish over the tools anyway when they are there.
824
833
 
@@ -162,5 +162,6 @@ and the `done` of the table above.
162
162
  ## 3. Close
163
163
 
164
164
  Nothing to write here beyond the routing above — the phase it hands to owns the artifacts, the
165
- panel and the closing order. When the route ended the run itself (`ask` → `wait`, `blocked` → `block`,
166
- `done` → `done`), publish the panel with that `attention` (flow-core §4) and print the §3 header.
165
+ panel and the closing order. When the route ended the run itself, publish the panel (flow-core §4) —
166
+ `ask` → the question as `decision`, which raises `wait`; `blocked` → `attention: block`; `done` →
167
+ `attention: done` — and print the §3 header.
@@ -16,7 +16,7 @@ Every `/flow-*` command assumes these rules. They are stated once, here, so a co
16
16
  carries what is specific to its phase. Read this once per session; a command that says "load
17
17
  `flow-core`" means this file.
18
18
 
19
- **This file belongs to flow `0.116.0`.** Compare it once, at the start of the session, against
19
+ **This file belongs to flow `0.116.1`.** Compare it once, at the start of the session, against
20
20
  `version` in `~/.claude/flow/.claude-plugin/plugin.json`. The two differing means the session
21
21
  is running a **mixture** — the commands from one copy of the plugin, these shared rules from another
22
22
  — which is exactly what happens when a branch or a release candidate is loaded over an installed
@@ -398,7 +398,7 @@ Each place a command would have asked resolves one of these ways:
398
398
  add `{ "key": "unattended:<site>", "default": "<resolution>", "phase": "<phase>" }` to
399
399
  `meta.json.defaults_used[]` (the prefix says it is not a FLOW key), and continue.
400
400
  - **question** — a decision only a person can take: the question stop below, `ask --gate <site>`,
401
- the panel's `attention` set to `wait`, end of the run.
401
+ the question as the panel's `decision` (it raises `wait`), end of the run.
402
402
  - **blocked** — something the run cannot get past (the environment, a tool, a check that keeps
403
403
  failing): `blocked --reason-file` with one line saying what a person or the orchestrator must
404
404
  fix, `attention: block`, end of the run.
@@ -679,7 +679,7 @@ language. So a publication is two moves:
679
679
 
680
680
  ```json
681
681
  {"phase": "build", "now": "unit suite over #2", "next": "review #2",
682
- "decision": "confirm the MR/PR body before I create it", "attention": "wait",
682
+ "decision": "confirm the MR/PR body before I create it",
683
683
  "blocks": [{"text": "sibling-repo still needs the endpoint contract", "link": "https://…"}],
684
684
  "stale_after_minutes": 45,
685
685
  "labels": {"now": "Ahora", "next": "Siguiente", "decision": "Decisión", "open": "Abierto",
@@ -690,7 +690,9 @@ language. So a publication is two moves:
690
690
  Every field is optional. `phase` is the phase **running now**. `now` is what is running — never
691
691
  the train restated (*"MR/PR open, waiting for review"* is what the train line already says).
692
692
  `next` is the next phase or MR/PR — never housekeeping (*archive the work*, *remove the
693
- worktree*). `decision` only while parked on the user; it sets `attention: wait` by itself.
693
+ worktree*). `decision` only while parked on the user; it is the only thing that raises `attention: wait`.
694
+ `attention` itself is written only for `block` with no `blocks` line, or `done`: a written
695
+ `wait` with no `decision` claims nobody.
694
696
  `blocks` are what stops the work on somebody else — a sibling repo with `contract_handoff:
695
697
  pending`, a red pipeline, an unmerged dependency — each with its `link` when it names an MR/PR.
696
698
  `labels` carry the fixed words in **the language of the work's artifacts** — also `mrs` (the
@@ -708,7 +710,12 @@ language. So a publication is two moves:
708
710
  **Where the plugin's hooks run — Claude Code and Codex — the render also happens on its own**: a
709
711
  `PostToolUse` hook renders the panel again whenever `meta.json`, the plan, or `panel-input.json` is
710
712
  newer than `panel.json` and than that branch's last attempt — a render that wrote nothing is not
711
- retried until one of them changes again. Ticking a step in the plan *is* publishing it there. The hook cannot reach
713
+ retried until one of them changes again. Ticking a step in the plan *is* publishing it there. **An answered question is too**: when the
714
+ user answers the harness's question tool (`AskUserQuestion`, Codex's `request_user_input`) and the
715
+ input holds a `decision`, the hook copies the input aside as answered (`panel-answered.json`) and
716
+ renders: while the input is still that copy, its `decision` and `wait` claim nobody. Your input is
717
+ never rewritten — the next one you write is newer than the answer and asks again. A question left
718
+ unanswered, rejected or timed out changes nothing. The hook cannot reach
712
719
  the terminal's MCP tools, which is what `panel.publish_cmd` is for (§4.2).
713
720
 
714
721
  **The CLI unavailable** — no network for npx, a sandbox that blocks it, a non-zero exit with no
@@ -817,7 +824,9 @@ halfway is not shown as finished. When the stretch will outlast the ~30 min stal
817
824
  `stale_after_minutes` in the input to what it will really take; (d) wherever `## Close` updates
818
825
  `meta.json`; (e) **the moment a question is answered or a gate is cleared** — before you resume the
819
826
  work: drop `decision` from the input, move `now` on, render. A panel still asking what the user
820
- already answered is worse than one that never asked; (f) **each plan step that lands** — tick it in
827
+ already answered is worse than one that never asked. Where the hook runs, an answer
828
+ given through the question tool already did it; a question asked in prose, or a gate cleared
829
+ another way, did not; (f) **each plan step that lands** — tick it in
821
830
  the phase artifact, move `now` on, render without `--forge`. Where the plugin's hook runs, the tick
822
831
  and the input change already rendered it; publish over the tools anyway when they are there.
823
832
 
@@ -160,5 +160,6 @@ and the `done` of the table above.
160
160
  ## 3. Close
161
161
 
162
162
  Nothing to write here beyond the routing above — the phase it hands to owns the artifacts, the
163
- panel and the closing order. When the route ended the run itself (`ask` → `wait`, `blocked` → `block`,
164
- `done` → `done`), publish the panel with that `attention` (flow-core §4) and print the §3 header.
163
+ panel and the closing order. When the route ended the run itself, publish the panel (flow-core §4) —
164
+ `ask` → the question as `decision`, which raises `wait`; `blocked` → `attention: block`; `done` →
165
+ `attention: done` — and print the §3 header.
package/bin/cli.mjs CHANGED
@@ -1780,14 +1780,26 @@ function stepLines(steps) {
1780
1780
  function readPanelInput(work, warn) {
1781
1781
  const p = join(work, 'panel-input.json')
1782
1782
  if (!existsSync(p)) return { input: {} }
1783
- let input
1784
- try { input = JSON.parse(readFileSync(p, 'utf8')) } catch (e) { return { error: `\`${p}\` is not readable JSON (${e.message})` } }
1783
+ let raw, input
1784
+ try { raw = readFileSync(p, 'utf8'); input = JSON.parse(raw) } catch (e) { return { error: `\`${p}\` is not readable JSON (${e.message})` } }
1785
1785
  if (!input || typeof input !== 'object' || Array.isArray(input)) return { error: `\`${p}\` must hold one JSON object` }
1786
+ // The hook copies the input aside when the user answers a question. While the input is still
1787
+ // that copy, its decision has been answered: neither it nor its `wait` claims anyone. The
1788
+ // agent's file is never rewritten — the next one it writes is simply newer than the answer.
1789
+ let answered = false
1790
+ try { answered = readFileSync(join(work, 'panel-answered.json'), 'utf8') === raw } catch {}
1791
+ if (answered) { delete input.decision; if (input.attention === 'wait') delete input.attention }
1786
1792
  for (const k of Object.keys(input)) if (!PANEL_INPUT_KEYS.includes(k)) { warn(`panel-input.json: \`${k}\` is not a field — ignored (fields: ${PANEL_INPUT_KEYS.join(', ')})`); delete input[k] }
1787
1793
  if (input.attention != null && !PANEL_ATTENTION.includes(input.attention)) {
1788
1794
  warn(`panel-input.json: attention \`${input.attention}\` ignored — one of ${PANEL_ATTENTION.join(' · ')}, or null`)
1789
1795
  delete input.attention
1790
1796
  }
1797
+ // `wait` says the user is being asked, and `decision` is what asks: a written `wait` with no
1798
+ // decision behind it is a question already answered that nobody took back.
1799
+ if (input.attention === 'wait' && !input.decision) {
1800
+ warn('panel-input.json: attention `wait` ignored — only a `decision` claims the user')
1801
+ delete input.attention
1802
+ }
1791
1803
  if (input.blocks != null && !Array.isArray(input.blocks)) { warn('panel-input.json: `blocks` must be a list — ignored'); delete input.blocks }
1792
1804
  if (input.labels != null) {
1793
1805
  if (typeof input.labels !== 'object' || Array.isArray(input.labels)) { warn('panel-input.json: `labels` must be an object — ignored'); delete input.labels }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flow-workflows",
3
- "version": "0.116.0",
3
+ "version": "0.116.1",
4
4
  "description": "Guided feat/bug workflows (start→ship), post-deploy monitoring and multi-agent code review, stack-agnostic. Each repo uses a shared FLOW.md plus optional harness overlay.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -3,7 +3,7 @@
3
3
  "name": "flow",
4
4
  "displayName": "Flow — guided dev workflows",
5
5
  "description": "Guided feat/bug workflows (start→ship), post-deploy monitoring and multi-agent code review, stack-agnostic. Each repo uses a shared FLOW.md plus optional harness overlay.",
6
- "version": "0.116.0",
6
+ "version": "0.116.1",
7
7
  "author": {
8
8
  "name": "Alberto Vioque",
9
9
  "email": "mashware@gmail.com"
@@ -5,6 +5,27 @@ plugin and is what `/flow:news` reads to show you what changed since your previo
5
5
 
6
6
  The canonical, richest notes live in the [GitHub Releases](https://github.com/mashware/flow-workflows/releases).
7
7
 
8
+ ## v0.116.1 — An answered question stops claiming you on the panel · 2026-11-12
9
+
10
+ **In short**
11
+ - **Answering the agent's question clears it from the live panel, the board and the control-room card at once.**
12
+ Before, the panel kept saying "waiting for you" until the agent remembered to rewrite its notes — in one real
13
+ session, 18 minutes after the answer, while the agent worked on.
14
+ - **Only a real answer does it.** A question dismissed, rejected or left unanswered (the 60-second timeout)
15
+ leaves the panel as it was; the rest of what the panel said — what is running, what is next, the blockers —
16
+ stays.
17
+ - **The panel claims you only while a decision is on it.** A `wait` written by hand with no decision behind it
18
+ no longer raises the flag.
19
+
20
+ The plugin's hook, which already repainted the panel when the work's files changed, now also watches the
21
+ question tool: when Claude Code's `AskUserQuestion` (or Codex's `request_user_input`) comes back with a real
22
+ answer — read from the tool's response alone — and the panel input holds a `decision`, it copies the input aside
23
+ as `panel-answered.json` and renders, through `panel.publish_cmd` too. While the input is still that copy,
24
+ `flow-workflows panel` leaves its `decision` and `wait` out; the agent's own file is never rewritten, so the next
25
+ one it writes asks again. Any other tool call costs what it did. The CLI no longer honours `attention: "wait"`
26
+ without a `decision` (it says so on stderr), and flow-core stops suggesting the agent write `attention` at all:
27
+ `block` and `done` are the only values it writes by hand.
28
+
8
29
  ## v0.116.0 — The board shows the roadmap, and each console hangs from its deliverable · 2026-11-12
9
30
 
10
31
  **In short**