Skip to content

feat: OpenCode 2.4.3 alignment, Flow child questions, tiered wakeups, and TUI contrast fix - #63

Merged
DEAN-Cherry merged 1 commit into
devfrom
iolaus/opencode-2.4-flow-ux
Nov 30, 2026
Merged

DEAN-Cherry merged 1 commit into
devfrom
iolaus/opencode-2.4-flow-ux

Conversation

@DEAN-Cherry

Copy link
Copy Markdown
Contributor

Summary

  • OpenCode 2.4.3 alignment: Upgraded @opencode/plugin & @opencode/schema to 2.4.3 and @opentui/core & @opentui/solid to 0.9.9 (effect stays 4.1.0); aligned src/roles/goal.ts with codemode/video background jobs and 2.4.3 ToolHooks.
  • Tiered Flow owner wakeups: run.completed, run.failed, node.waiting (gate), and node.waiting_input wake idle owner sessions via delivery: "queue", resume: true; run.cancelled and node.rescued stay resume: false. Reload reconciliation never double-wakes, and gates still strictly require explicit user decision.
  • Flow child question/reply channel + host prompt fallback (Option C):
    • Added iolaus_ask tool (visible only in scheduled Flow children; native question hidden & blocked in Flow children) persisting waiting_input questions in SQLite (dag_questions).
    • Owner agent triages first (answers via iolaus_flow action="reply" or asks user), while TUI surfaces questions immediately for direct reply (first-writer-wins); child resumes in the same session preserving history.
    • Hardened compaction delivery tracking, child-first worktree recovery, directory drift guard (including legacy worktree: true records), recoveryReady reattachment, and atomic SQLite conflict retries across launch/steer/settle.
    • Added fallback host observer (src/dag/host-prompts.ts) for permission.asked / unexpected form.created surfaced to TUI without waking owner.
    • Fixed ultrawork mode body leaking ask-user prose into Flow children and aligned orchestrator/child contracts + reference/active-manifest.json.
  • TUI contrast & visual hierarchy:
    • DagDialog now consumes context.theme.surface("dialog").
    • Added WCAG relative-luminance contrast calibration (>= 4.5:1) for success and warning on light/dark themes, replacing glaring neon green on light themes.
    • Decluttered completed cards (neutral border.base for unselected completed cards, action.primary for selected card, glyph-only tinting in detail header and sidebar Recent) and added waiting_input + host permission/form dialogs.

Verification

  • bun run typecheck: exit 0
  • bun test: 493 passed, 0 failed (3,727 assertions across 31 files)
  • bun run check:package: PASS (93 active files, 6 package files)
  • bun run check:reference: PASS (800 verified files)
  • OpenCode v2.4.3 isolated live QA (.iolaus/evidence/opencode-2.4/summary.json): 10/10 suites PASS (179 named checks + interactive TUI assertions, 0 leftover processes)
  • Momus review: VERDICT: PASS

…, and TUI contrast calibration

- Upgrade @opencode/plugin and @opencode/schema to 2.4.3 and @opentui/{core,solid} to 0.9.9; align Hephaestus goal loop with codemode/video background jobs and 2.4.3 ToolHooks.
- Tiered Flow owner wakeups: run.completed, run.failed, node.waiting (gate), and node.waiting_input resume idle owner sessions via queued synthetic notices while run.cancelled and node.rescued remain non-waking; preserve reload dedupe and explicit human gate decisions.
- Add durable Flow child question/reply protocol (iolaus_ask -> waiting_input -> reply) with same-session continuation, owner triage + direct TUI reply (first-writer-wins), native question hiding/blocking in Flow children, ultrawork child mode-body leak fix, compaction-safe delivery verification, child-first worktree recovery, atomic SQLite conflict retries across launch/steer/settle, and fallback host permission/form observation.
- Upgrade TUI dialog to theme.surface("dialog"), add WCAG relative-luminance contrast calibration for light/dark success and warning tones, declutter completed card borders/headers, and add interactive waiting_input and host permission/form handling.
- Verified with typecheck, 493 unit tests, check:package, check:reference, and 10 OpenCode v2.4.3 live QA suites (179 named checks + interactive TUI).
@DEAN-Cherry
DEAN-Cherry merged commit 6be9814 into dev Nov 30, 2026
1 check passed
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