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.
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.
stealth-factory/opscope#618: Adds the background-agent job state and detail that this change includes in search terms.
stealth-factory/opscope#620: Adds the filter behaviour that this change extends to background-agent job details.
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 name
Status
Explanation
Title check
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 thr…
Description check
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 ad…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check 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.
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
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.
OPS-277
OPS-276
OPS-281