Graph: TUI state and navigation

t-520·WorkTask·
·
·
·Omni/Agentd.hs
Created3 months ago·Updated1 week ago·pipeline runs →

Dependencies

Description

Edit

Define TUI state and navigation logic.

Types

  • TuiState - current node, view mode, input buffer, join selection
  • ViewMode - Normal, OpsDetail, Compose

Functions

  • initialState :: Graph -> IO TuiState
  • moveToPrevSibling :: TuiState -> Graph -> IO TuiState
  • moveToNextSibling :: TuiState -> Graph -> IO TuiState
  • moveToParent :: TuiState -> Graph -> IO TuiState
  • moveToChild :: TuiState -> Graph -> IO TuiState
  • startCompose :: TuiState -> TuiState
  • submitMessage :: TuiState -> Graph -> IO TuiState
  • markForJoin :: TuiState -> TuiState

File

Omni/Agent/Graph/Tui/State.hs

Timeline (17)

🔄[system]Open → InProgress1 month ago
💬[system]1 month ago

Pipeline: dev completed (run=dev-t-520-1771517912, cost=0.0c)

🔄[system]InProgress → Open1 month ago
💬[system]1 month ago

Pipeline: verification failed: Build failed for Omni/Agentd.hs (exit 1): 7[10000;10000H7[10000;10000Hthis derivation will be built: /nix/store/cy11zm5yklxnwbkrn825fchqcdh8fd8x-agentd.drv building '/nix/store/cy11zm5yklxnwbkrn825fchqcdh8fd8x-agentd.drv'... Running phase: unpackPhase unpacking source archive /nix/store/k7p56lm3nr1jkpqqbfxmcc2j7i62a74i-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase [ 1 of 27] Compiling Alpha ( Alpha.hs, Alpha.o ) [ 2 of 27] Compiling Omni.Agent.Paths ( Omni/Agent/Paths.hs, Omni/Agent/Paths.o ) [ 3 of 27] Compiling Omni.Agent.Models ( Omni/Agent/Models.hs, Omni/Agent/Models.o )

Omni/Agent/Models.hs:35:1: error: Could not find module Data.Yaml' Use -v (or :set -v in ghci) to see a list of the files searched for. | 35 | import qualified Data.Yaml as Yaml | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ 4 of 27] Compiling Omni.Test ( Omni/Test.hs, Omni/Test.o ) [ 5 of 27] Compiling Omni.Cli ( Omni/Cli.hs, Omni/Cli.o ) [ 7 of 27] Compiling Omni.Agent.Trace ( Omni/Agent/Trace.hs, Omni/Agent/Trace.o ) [ 9 of 27] Compiling Omni.Agent.Prompt.IR ( Omni/Agent/Prompt/IR.hs, Omni/Agent/Prompt/IR.o ) [10 of 27] Compiling Omni.Agent.Prompt.Hydrate ( Omni/Agent/Prompt/Hydrate.hs, Omni/Agent/Prompt/Hydrate.o ) [11 of 27] Compiling Omni.Agent.Prompt.Compile ( Omni/Agent/Prompt/Compile.hs, Omni/Agent/Prompt/Compile.o ) [12 of 27] Compiling Omni.Agent.Op ( Omni/Agent/Op.hs, Omni/Agent/Op.o ) [20 of 27] Compiling Omni.Agent.Auth ( Omni/Agent/Auth.hs, Omni/Agent/Auth.o ) [22 of 27] Compiling Omni.Time ( Omni/Time.hs, Omni/Time.o ) error: builder for '/nix/store/cy11zm5yklxnwbkrn825fchqcdh8fd8x-agentd.drv' failed with exit code 1; last 25 log lines: > source root is source > Running phase: patchPhase > Running phase: updateAutotoolsGnuConfigScriptsPhase > Running phase: configurePhase > no configure script, doing nothing > Running phase: buildPhase > [ 1 of 27] Compiling Alpha ( Alpha.hs, Alpha.o ) > [ 2 of 27] Compiling Omni.Agent.Paths ( Omni/Agent/Paths.hs, Omni/Agent/Paths.o ) > [ 3 of 27] Compiling Omni.Agent.Models ( Omni/Agent/Models.hs, Omni/Agent/Models.o ) > > Omni/Agent/Models.hs:35:1: error: > Could not find module Data.Yaml' > Use -v (or :set -v in ghci) to see a list of the files searched for. > | > 35 | import qualified Data.Yaml as Yaml > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > [ 4 of 27] Compiling Omni.Test ( Omni/Test.hs, Omni/Test.o ) > [ 5 of 27] Compiling Omni.Cli ( Omni/Cli.hs, Omni/Cli.o ) > [ 7 of 27] Compiling Omni.Agent.Trace ( Omni/Agent/Trace.hs, Omni/Agent/Trace.o ) > [ 9 of 27] Compiling Omni.Agent.Prompt.IR ( Omni/Agent/Prompt/IR.hs, Omni/Agent/Prompt/IR.o ) > [10 of 27] Compiling Omni.Agent.Prompt.Hydrate ( Omni/Agent/Prompt/Hydrate.hs, Omni/Agent/Prompt/Hydrate.o ) > [11 of 27] Compiling Omni.Agent.Prompt.Compile ( Omni/Agent/Prompt/Compile.hs, Omni/Agent/Prompt/Compile.o ) > [12 of 27] Compiling Omni.Agent.Op ( Omni/Agent/Op.hs, Omni/Agent/Op.o ) > [20 of 27] Compiling Omni.Agent.Auth ( Omni/Agent/Auth.hs, Omni/Agent/Auth.o ) > [22 of 27] Compiling Omni.Time ( Omni/Time.hs, Omni/Time.o ) For full logs, run: nix log /nix/store/cy11zm5yklxnwbkrn825fchqcdh8fd8x-agentd.drv

[1A[1G[2K[+] Omni/Agentd.hs [1A[1G[2K[0m[…] Omni/Agentd.hs[0m[1B

[1A[1G[2K[+] Omni/Agentd.hs [1A[1G[2K[~] Omni/Agentd.hs: warning: you did not specify '--add-root'; the result mi...[1B[1A[1G[2K[~] Omni/Agentd.hs: /nix/store/cy11zm5yklxnwbkrn825fchqcdh8fd8x-agentd.drv…[1B[1A[1G[2K[~] Omni/Agentd.hs: this derivation will be built:…[1B[1A[1G[2K[~] Omni/Agentd.hs: /nix/store/cy11zm5yklxnwbkrn825fchqcdh8fd8x-agentd.drv…[1B[1A[1G[2K[~] Omni/Agentd.hs: building '/nix/store/cy11zm5yklxnwbkrn825fchqcdh8fd8x-ag...[1B[1A[1G[2K[~] Omni/Agentd.hs: Running phase: unpackPhase…[1B[1A[1G[2K[~] Omni/Agentd.hs: unpacking source archive /nix/store/k7p56lm3nr1jkpqqbfxm...[1B[1A[1G[2K[~] Omni/Agentd.hs: source root is source…[1B[1A[1G[2K[~] Omni/Agentd.hs: Running phase: patchPhase…[1B[1A[1G[2K[~] Omni/Agentd.hs: Running phase: updateAutotoolsGnuConfigScriptsPhase…[1B[1A[1G[2K[~] Omni/Agentd.hs: Running phase: configurePhase…[1B[1A[1G[2K[~] Omni/Agentd.hs: no configure script, doing nothing…[1B[1A[1G[2K[~] Omni/Agentd.hs: Running phase: buildPhase…[1B[1A[1G[2K[~] Omni/Agentd.hs: [ 1 of 27] Compiling Alpha ( Alpha.hs, Alpha....[1B[1A[1G[2K[~] Omni/Agentd.hs: [ 2 of 27] Compiling Omni.Agent.Paths ( Omni/Agent/Paths...[1B[1A[1G[2K[~] Omni/Agentd.hs: [ 3 of 27] Compiling Omni.Agent.Models ( Omni/Agent/Mode...[1B[1A[1G[2K[~] Omni/Agentd.hs: …[1B[1A[1G[2K[~] Omni/Agentd.hs: Omni/Agent/Models.hs:35:1: error: Could not find modu...[1B[1A[1G[2K[~] Omni/Agentd.hs: [ 5 of 27] Compiling Omni.Cli ( Omni/Cli.hs, Omn...[1B[1A[1G[2K[~] Omni/Agentd.hs: [ 7 of 27] Compiling Omni.Agent.Trace ( Omni/Agent/Trace...[1B[1A[1G[2K[~] Omni/Agentd.hs: [ 9 of 27] Compiling Omni.Agent.Prompt.IR ( Omni/Agent/P...[1B[1A[1G[2K[~] Omni/Agentd.hs: [10 of 27] Compiling Omni.Agent.Prompt.Hydrate ( Omni/Ag...[1B[1A[1G[2K[~] Omni/Agentd.hs: [11 of 27] Compiling Omni.Agent.Prompt.Compile ( Omni/Ag...[1B[1A[1G[2K[~] Omni/Agentd.hs: [12 of 27] Compiling Omni.Agent.Op ( Omni/Agent/Op.hs...[1B[1A[1G[2K[~] Omni/Agentd.hs: [20 of 27] Compiling Omni.Agent.Auth ( Omni/Agent/Auth....[1B[1A[1G[2K[~] Omni/Agentd.hs: [22 of 27] Compiling Omni.Time ( Omni/Time.hs, Om...[1B[1A[1G[2K[~] Omni/Agentd.hs: error: builder for '/nix/store/cy11zm5yklxnwbkrn825fchqc...[1B[0m[38;5;1m[2Kfail: bild: realise: Omni/Agentd.hs [0m[0m [0m[1A[1G[2K[0m[38;5;1m[x] Omni/Agentd.hs[0m[1B 1

🔄[system]Open → InProgress1 month ago
💬[human]1 month ago

Pipeline scheduler: started run=pipeline-omni-agentd-hs-t-520-1771560843 domain=Omni/Agentd.hs

🔄[human]InProgress → Review1 month ago
💬[human]1 month ago

Pipeline scheduler: run=pipeline-omni-agentd-hs-t-520-1771560843 domain=Omni/Agentd.hs status=done cost=20c (fund-spend=failed)

💬[human]1 week ago

Ava triage: pipeline auto-run reached status=done but the agent made NO git commits and reported blockers (missing files, path mismatches, or need clarification). This task is not actually in review — there's nothing to review. Resetting status to Open so it can be re-scoped.

🔄[human]Review → Open1 week ago
💬[human]1 week ago

ORPHAN COMMIT: coder agent produced commit f5939fd92d9db9fdceb8488dddf2cc80a8116168 on 2026-02-19 but it was never merged into live. Reachable only via branchless reflog. Pipeline scheduler bug — see separate task. To recover: git cherry-pick f5939fd92d9db9fdceb8488dddf2cc80a8116168 from omni/live (expect conflicts after 6+ weeks of drift). Otherwise re-implement from scratch.