Skip to content

fix(chat): fold what ended in the OmO background-task list into one line - #310

Merged
devswha merged 3 commits into
mainfrom
fix/omo-tasks-fold-ended
Oct 2, 2026
Merged

devswha merged 3 commits into
mainfrom
fix/omo-tasks-fold-ended

Conversation

@devswha

@devswha devswha commented Oct 2, 2026

Copy link
Copy Markdown
Owner

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

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.

@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 51f01685-bee1-4782-b387-c67c0798ce18

📥 Commits

Reviewing files that changed from the base of the PR and between f273544 and 2373a39.

📒 Files selected for processing (5)
  • CHANGELOG.md
  • src/components/BackgroundTasks.tsx
  • src/lib/i18n.ja.ts
  • src/lib/i18n.ko.ts
  • src/lib/i18n.zh.ts
🚧 Files skipped from review as they are similar to previous changes (4)
  • src/lib/i18n.zh.ts
  • src/lib/i18n.ja.ts
  • CHANGELOG.md
  • src/lib/i18n.ko.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Summary

Summary by CodeRabbit

  • New Features
    • Ended tasks and workflows are grouped in a collapsed summary showing the number recently ended and, when applicable, the number that failed.
    • Expand the summary to view individual outcomes. Active workflows and running tasks remain listed separately.
    • “Nothing running right now” appears after a successful update when there are no active tasks or workflows and ended activity is present.
    • The updated status messages are available in Japanese, Korean, and Chinese.

Walkthrough

The task panel now separates active workflows from ended activity. It groups ended tasks and workflows under an expandable summary that displays ended and failed counts.

Changes

Ended activity summary

Layer / File(s) Summary
Workflow status and ended counts
src/lib/omoTasks.ts, src/lib/omoTasks.test.ts
Adds helpers to classify ongoing workflows and count ended tasks, ended workflows, and failures. Tests cover ongoing statuses, failure counts, and zero counts.
Task panel ended-activity disclosure
src/components/BackgroundTasks.tsx, src/components/BackgroundTasks.css, src/lib/i18n.ja.ts, src/lib/i18n.ko.ts, src/lib/i18n.zh.ts, CHANGELOG.md
The panel lists active workflows separately and combines ended tasks and workflows in a collapsed list. The summary shows ended counts and, when nonzero, failed counts. The panel also updates focus handling, translations, styles, and changelog text.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 2373a

The task panel provides feedback when there is no activity and a separate notice when only ended activity remains. No actionable merge-blocking risk is established; the change is mergeable subject to normal checks.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: folding ended OmO background tasks into one line.
Description check ✅ Passed The description explains the problem, resulting behavior, implementation, translations, changelog updates, validation results, and known test gaps. It uses equivalent headings instead of the template …
Docstring Coverage ✅ Passed Docstring coverage is 83.33% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 6 files. (1 skipped: 1 u…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Comment @coderabbitai help to get the list of available commands.

@devswha
devswha merged commit 888bb11 into main Oct 2, 2026
3 checks passed
@devswha
devswha deleted the fix/omo-tasks-fold-ended branch October 2, 2026 11:02
devswha added a commit that referenced this pull request Oct 2, 2026
Stacked on #310 (same component file); it retargets to main once that
merges.

## What was wrong
On a phone the status line above the message box wrapped. An OmO pane
with background tasks, a model name and a reasoning level took two rows,
three with the context text open, and that room came out of the
conversation.

Measured on current main in headless Chrome, real app on a pane of the
isolated test herdr session, 5 widths (320, 360, 390, 412, 430) x 4
languages (en, ko, ja, zh) x 4 states: **50 of 80** had more than one
row.

## Change
- `.composer-status` no longer wraps.
- At 480px and below, the background-task chip shows its icon and the
number (the button keeps the full words as its name and title), and the
reasoning chip shows the level alone (the full phrase stays for screen
readers).
- The model name is the first to give way (ellipsis, down to a few
letters); the opened context text shortens only after that. The model
and the level are now direct items of the status line (`display:
contents` on their wrapper), so the level cannot overlap what follows
it.
- Wider screens are unchanged apart from never wrapping.

## Checks
- Same 80 cases after the change: **80 of 80** one row, nothing cut off
or overlapping, no page overflow. The first attempt passed the row count
but overlapped the level and the context ring at 320px; the measurement
now checks overlap too.
- Looked at 7 of the screenshots (320 and 390, en/ko/ja, each state).
- `bun run typecheck`, `bun run build`, `omoTasks`/`i18n`/`motion` unit
tests (21) pass.
- Not checked: real iOS Safari or Android Chrome, and compact density.
bfirestone added a commit to bfirestone/herdr-web-ui that referenced this pull request Oct 7, 2026
Sidebar switches between two components instead of returning early. The early return threw React error devswha#310 when the grouping changed at runtime.
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