Repository navigation
feat(chat): show an OmO session's workflows in the background-task list - #306
Merged
Merged
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (15)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
…e last task ends, and time tasks on the PC's clock
…rse only the asked session's, within a budget, and show paused runs and blocked steps
…s with no time, always say how a task ended, and offer the list on every OmO pane
…/omo-dag-runs # Conflicts: # server/omo-tasks.test.ts # src/components/BackgroundTasks.tsx
# Conflicts: # src/lib/i18n.ja.ts # src/lib/i18n.ko.ts # src/lib/i18n.zh.ts
# Conflicts: # CHANGELOG.md # src/lib/i18n.ja.ts # src/lib/i18n.ko.ts # src/lib/i18n.zh.ts
…/omo-dag-runs # Conflicts: # CHANGELOG.md # src/lib/i18n.ja.ts # src/lib/i18n.ko.ts # src/lib/i18n.zh.ts
# Conflicts: # CHANGELOG.md # server/api.contract.test.ts # server/index.ts # server/omo-tasks.test.ts # server/omo-tasks.ts # shared/protocol.ts # site/demo/transport.ts # src/components/BackgroundTasks.css # src/components/BackgroundTasks.tsx # src/lib/api.ts # src/lib/i18n.ja.ts # src/lib/i18n.ko.ts # src/lib/i18n.zh.ts # src/lib/machineContext.tsx # src/lib/omoTasks.ts
devswha
added a commit
that referenced
this pull request
Oct 2, 2026
…ine (#310) ## What changes The background-task list (status line → "N background tasks") is for what runs now. Before, it also listed every task that ended in the last day, and every workflow, finished or not. With a day of work behind it the list was mostly history: on a desktop it was cut at the bottom, and on a phone it covered the last message. Now: - Running tasks and workflows that have not ended (running, waiting, paused) show as before. - Everything that ended is one line under them: `4 ended in the last day · 2 failed`. It opens to the same rows as before (ended workflows first, then ended tasks). - "failed" counts failed and lost tasks and failed workflows, so a failure is seen without opening the line. - With nothing running, the list says "Nothing running right now" above that line. Asked for by the maintainer while trying the unreleased build. ## How - `src/lib/omoTasks.ts`: `runGoing`, `endedSummary` (unit-tested). - `src/components/BackgroundTasks.tsx` + `.css`: the fold line (a button with `aria-expanded`/`aria-controls`; the list is `hidden` until opened). - Strings: "Ended in the last day" becomes "{n} ended in the last day"; new "Nothing running right now" (ko, ja, zh). - CHANGELOG: the two unreleased entries for this list (#305, #306) now describe it as it ships. No server, protocol or demo-transport change. ## Checks - `bun run typecheck`, `bun run build` pass; `omoTasks`, `i18n`, `motion` unit tests pass (21). - Real app in headless Chrome against a pane in the isolated test herdr session, with task and workflow records built by the real `omoTasks`/`omoRuns` from fixture files: folded and opened states at 1440x900 and 390x844, English and Korean. Looked at 4 of the 12 screenshots. - Not checked: a real OmO session with a day of ended tasks; Safari.
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.
Stacked on #305 (base
feat/omo-task-popover); review that first.Summary
OmO checkpoints every workflow (DAG run) to
<cwd>/.omo/senpi-task/dag/runs/dag_*.json:parentSessionId, status,waves[].nodeIds, and per nodestate,label,error. The background-task list (#305) now shows the session's workflows above its tasks.Server (
server/omo-tasks.tsomoRuns)parentSessionIdis the pane's session: running ones oldest first, then up to 5 that ended in the last day.waves; a node no wave names goes in a last wave. A failed step carrieserror.message.runningsince 2026-09-05 here). Prompts and outputs never leave the server: a run is 600–800 bytes on the wire.GET /api/pane/omo-tasksanswers{ tasks, runs }(OmoActivity); the client readsrunsas[]from a bridge that only sendstasks.Client (
BackgroundTasks)Ideas from omo-herdr-dag's DAG view (MIT): its wave layout and summary line; data from OmO's checkpoints only, OmO is not touched.
Test plan
bun run typecheckbun test ./server/omo-tasks.test.ts ./src/lib/omoTasks.test.ts ./src/lib/i18n.test.ts ./src/motion.test.ts(new: waves/labels/errors, prompt/output not leaked, other sessions / untouched for a day / unknown status / torn file skipped, a rewritten checkpoint read again)bun test ./server/api.contract.test.ts -t omo-tasks(isolated test herdr).omo: the session's two runs from 2026-10-01 come back with their waves and the one failed step marked.Codex review (gpt-6.1-sol xhigh) — fixed
parentSessionIdnear the start is matched before parsing, one call parses at most 16 MB (the rest on the next poll), and files over 8 MB, links and pipes are skipped.pending/pausedruns andblockedsteps were dropped. Supported in the protocol, server and UI.dag_names are random).