#606

fix(mux-activity): match a background agent's detail with / under Herdr and Luvus (OPS-281)

Openwiiiimmwants to merge intofrom

Closes OPS-281 · related to OPS-276 and OPS-277

What

Under Herdr and Luvus, the / filter in mux-activity did not search the line drawn under a background agent's row. That line says what the agent is doing, or what it needs when blocked. So a query for words in it hid the agent. Under Rex the message was already searched through the root record, but the in-flight count and any warning were not.

background::search_words(job) returns the same words note_rows draws, unwrapped: the message, the in-flight count and any warning. All three backends add these words to their searched fields.

Testing

  • New tests in background.rs, herdr.rs and luvus.rs. The Herdr and Luvus tests fail with the fix removed and pass with it.
  • cargo test: all green, including check.rs.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Activity

6
linear-code[bot]13d ago
chatgpt-codex-connector[bot]13d ago
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

ReviewStatusCommitReview trigger
📝 Code Review✅ Completed 2026-11-15T14:01:39.527539Ze477268PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

coderabbitai[bot]13d ago

No actionable comments were generated in the recent review.

Summary by CodeRabbit

  • New Features
    • Search now matches text in background agent job details, including status messages, in-flight information and warnings.

Walkthrough

Background-agent search terms now include non-empty job messages, in-flight facts and warnings. Herdr, Luvus and Rex search fields include terms from attached background jobs. Tests cover term extraction and matching job details.

Changes

Background-agent search

Layer / File(s)Summary
Collect background job search terms
widgets/src/widgets/mux-activity/background.rs
The new search_words helper returns non-empty messages, in-flight facts and warnings. A test checks the returned terms.
Add job terms to activity search fields
widgets/src/widgets/mux-activity/herdr.rs, widgets/src/widgets/mux-activity/luvus.rs, widgets/src/widgets/mux-activity/rex.rs
Herdr, Luvus and Rex add background job terms to their search fields. Tests check matching job details in Herdr and Luvus.

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

Change: Bug fix

Possibly related PRs

Suggested reviewers: greptile-apps

Merge Risk: Minimal · up to e4772

Searching with / now also matches the message, in-flight count and warning shown under a background agent's row. The change is small and local, and no merge-blocking risk was found.

Security architecture risk: Minimal · up to e4772

The change expands matching for information already displayed in activity views. No introduced or worsened risk to security, failure containment, rollback, or ownership was established.

Pre-merge checks: 4

Check nameStatusExplanation
Title checkThe title names the change: background agent detail matching under the Herdr and Luvus backends for the / filter in mux-activity. The raw summary and objectives confirm that search_words feeds all thr…
Description checkThe description explains the bug (the / filter did not search the line under a background agent's row in Herdr and Luvus), the fix (background::search_words feeds all three backends), and the tests ad…
Linked Issues checkCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes checkCheck skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change: background agent detail matching under the Herdr and Luvus backends for the / filter in mux-activity. The raw summary and objectives confirm that search_words feeds all three backends. The title is specific and accurate, and it stays under 100 characters, so it passes.

Full details: Description check

Explanation

The description explains the bug (the / filter did not search the line under a background agent's row in Herdr and Luvus), the fix (background::search_words feeds all three backends), and the tests added in background.rs, herdr.rs and luvus.rs. It relates directly to the changeset, so it passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Simplify code

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit taps a search term neat,
Job messages join the words to meet.
Facts and warnings hop in line,
Herdr, Luvus, Rex now find.
The bunny bounds, its work complete.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 64eaa08a-d2ed-41c5-983b-5acd76f764c9
Commits

Reviewing files that changed from the base of the PR and between 9d3315788e07b5284f57d2fe29be1880cc4e4199 and e477268702ef447052167b941832fe14c51a85e7.

Files selected for processing: 4

  • widgets/src/widgets/mux-activity/background.rs
  • widgets/src/widgets/mux-activity/herdr.rs
  • widgets/src/widgets/mux-activity/luvus.rs
  • widgets/src/widgets/mux-activity/rex.rs

Included review availability: This review used your included allowance. 9 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 10 reviews per hour.

Recent review details

Context from checks skipped due to timeout: 4

  • GitHub Check: CodeRabbit
  • GitHub Check: test
  • GitHub Check: debian
  • GitHub Check: macos
Additional context used

Code guidelines: 2

.agents/skills/principle-foundational-thinking/SKILL.md — Agent Skill
.agents/skills/principle-laziness-protocol/SKILL.md — Agent Skill
Skipped guideline sources: 42

Not read for this review (the limit of 100 guideline files per review was reached): 8 files
  .agents/skills/wait-what/SKILL.md
  .agents/skills/wayfinder/SKILL.md
  .agents/skills/why/SKILL.md
  .agents/skills/wizard/SKILL.md
  .agents/skills/writing-beats/SKILL.md
  .agents/skills/writing-for-agents/SKILL.md
  .agents/skills/writing-fragments/SKILL.md
  .agents/skills/writing-shape/SKILL.md
Not fully prepared for this review (preparing guideline files took longer than 2 minutes): 34 files
  .agents/skills/principle-minimize-reader-load/SKILL.md
  .agents/skills/principle-model-the-domain/SKILL.md
  .agents/skills/principle-redesign-from-first-principles/SKILL.md
  .agents/skills/principle-separate-before-serializing-shared-state/SKILL.md
  .agents/skills/principle-subtract-before-you-add/SKILL.md
  .agents/skills/principle-test-behavior-not-implementation/SKILL.md
  .agents/skills/principle-type-system-discipline/SKILL.md
  .agents/skills/production-release-gating/SKILL.md
  .agents/skills/prototype/SKILL.md
  .agents/skills/recall/SKILL.md
  .agents/skills/research/SKILL.md
  .agents/skills/resolve-merge-conflicts/SKILL.md
  .agents/skills/retro/SKILL.md
  … and 21 more
Path-based instructions: 2

Source excerpt: **Data structures first.**

CodeRabbit inference engine (.agents/skills/principle-foundational-thinking/SKILL.md)

Files:

  • widgets/src/widgets/mux-activity/background.rs
  • widgets/src/widgets/mux-activity/herdr.rs
  • widgets/src/widgets/mux-activity/luvus.rs
  • widgets/src/widgets/mux-activity/rex.rs
Source excerpt: **Consolidate decisions.**

CodeRabbit inference engine (.agents/skills/principle-laziness-protocol/SKILL.md)

Files:

  • widgets/src/widgets/mux-activity/background.rs
  • widgets/src/widgets/mux-activity/herdr.rs
  • widgets/src/widgets/mux-activity/luvus.rs
  • widgets/src/widgets/mux-activity/rex.rs
Additional comments: 1

widgets/src/widgets/mux-activity/background.rs: 1

106-106: Functional Correctness

No change needed: the matcher intentionally excludes cross-field phrases.

matches checks each search field separately. A query that spans fields is not a match. The message Running tests and the count 1 in flight are separate fields, so /tests 1 in flight does not match the agent. The each_field_is_matched_on_its_own test covers this behaviour.

coderabbitai[bot]approved changes13d ago