Skip to content

refactor: move query input from selection to execution phase#543

Merged
FL4TLiN3 merged 1 commit intomainfrom
refactor/move-query-input-to-execution
Feb 16, 2026
Merged

refactor: move query input from selection to execution phase#543
FL4TLiN3 merged 1 commit intomainfrom
refactor/move-query-input-to-execution

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • Remove query from Selection phase — selection now returns only expertKey + checkpoint
  • Add "waiting" RunStatus to execution; InterfacePanel collects the first query when no CLI query is provided
  • Add queryReady promise to renderExecution; start-handler awaits it before calling perstackRun
  • Render runtime log events (initializeRuntime, skillConnected, skillDisconnected) with ● ActionRow bullet format instead of plain dimmed text
  • Clean up terminal buffer on phase transitions by rendering null before exit() (deferred exit pattern)
  • Remove tree indicator from ActionRow, add marginBottom gap between log events

Test plan

  • pnpm typecheck — 22/22 passed
  • pnpm test — 92 files, 1030 tests passed
  • pnpm build — 22/22 passed
  • pnpm format-and-lint — no new warnings
  • Manual: perstack start → select expert → InterfacePanel appears → type query → Enter → execution begins
  • Manual: perstack start expert-key "query" → execution starts immediately (no waiting state)
  • Manual: verify selection list clears after expert selection
  • Manual: verify InterfacePanel clears between continue iterations

🤖 Generated with Claude Code

- Remove query from SelectionResult/SelectionParams; selection now returns only expertKey + checkpoint
- Add "waiting" RunStatus to execution; InterfacePanel collects first query when no query provided
- Add queryReady promise to renderExecution; start-handler awaits it before calling perstackRun
- Render log events (initializeRuntime, skillConnected) with ActionRow bullet format
- Clean up terminal buffer on phase transitions by rendering null before exit
- Remove tree indicator from ActionRow, add gap between log events

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 force-pushed the refactor/move-query-input-to-execution branch from 93bb437 to bb9a7d6 Compare February 16, 2026 18:07
@FL4TLiN3 FL4TLiN3 merged commit c6870b0 into main Feb 16, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 deleted the refactor/move-query-input-to-execution branch February 16, 2026 18:08
@FL4TLiN3 FL4TLiN3 mentioned this pull request Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant