feat(tui): orchestration Plan View widget and wizard (Phase 6, #1241)#1272
Merged
feat(tui): orchestration Plan View widget and wizard (Phase 6, #1241)#1272
Conversation
Add live task graph visualization in TUI side panel for the orchestration feature. Press `p` to toggle between Sub-agents and Plan View. - plan_view.rs: PlanView widget with task table, per-row status spinners, status colors (Running=Yellow, Completed=Green, Failed=Red), goal truncation with ellipsis, and 30-second stale-plan auto-dismiss - TaskGraphSnapshot/TaskSnapshotRow in MetricsSnapshot: always-compiled snapshot types; From<&TaskGraph> impl (orchestration feature-gated) with strip_ctrl() state machine for CSI sequence stripping - App: plan_view_active toggle (p key), auto-reset on new plan via graph_id comparison, [Plan]/[Agents] status bar indicator - Command palette: plan:status, plan:confirm, plan:cancel, plan:list, plan:toggle entries - --init wizard: step_orchestration() with all [orchestration] fields; max_parallel <= max_tasks validation; planner_model char whitelist - Docs: tui.md Plan View section, task-orchestration.md TUI Integration section, README and zeph-tui README updated
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 6 of the orchestration epic (#1235). Adds live task graph visualization to the TUI side panel and completes the
--initwizard for[orchestration]settings.crates/zeph-tui/src/widgets/plan_view.rs): task table with per-row status spinners, status colors, goal truncation, and 30-second stale-plan auto-dismisspkeybinding: toggles right side panel between Sub-agents and Plan View; auto-resets on new planFrom<&TaskGraph>impl (feature-gated) withstrip_ctrl()CSI state machine for sanitizing LLM-generated titles and error stringsplan:status,plan:confirm,plan:cancel,plan:list,plan:toggle--initwizard:step_orchestration()covering all[orchestration]config fields withmax_parallel <= max_tasksvalidation andplanner_modelchar whitelist[Plan]/[Agents]status bar indicator when a graph is activeadvanced/tui.mdPlan View section,concepts/task-orchestration.mdTUI Integration sectionTest plan
cargo build --features full— cleancargo build --features tui(without orchestration) — clean, shows "No active plan"cargo clippy --workspace --features full -- -D warnings— cleancargo nextest run --config-file .github/nextest.toml --workspace --features full --lib --bins— 4336 passpin TUI to toggle Plan View/plan <goal>and observe Plan View updatesplan:confirm,plan:cancelfrom command palette (Ctrl+P)zeph --initshows[orchestration]wizard stepNotes
TODO(#1241)comment inagent/mod.rs. Snapshots correctly reflect Created/Completed/Failed states; Running state will be wired when DagScheduler tick integration is added.]) instrip_ctrl()is a known non-blocking gap noted by reviewer — tracked for follow-up.Closes #1241