Repository navigation
fix(bin): pass the task record to agent_state so OMP lanes resolve - #123
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughChangesOMP state binding
Blu-ray dashboard documentation
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~12 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The OMP state-binding change and Blu-ray operational documentation have no identified merge-blocking risk. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 57.14% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 2 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
On the docstring-coverage warning: this repo's shell convention (see bin/) is inline |
Summary
Two small edits left uncommitted in the primary checkout, landed as a direct PR (captain-approved 2026-09-16).
bin/fm-control.sh:agent_state()now forwards the task record as the third argument,fm_backend_agent_state "$BACKEND" "$T" "$META". Without it the tmux probe cannot bind an OMP lane's launch-bound Bun/OMP identity, so every interrupt, exit, and relaunch on an OMP lane readambiguous. It is the onlyfm_backend_agent_statecaller in the file. Backlog item:fm-control-omp-agent-state-meta.docs/dashboards.md: adds thebluray.agee.devhost row and its section. Backlog item:fm-docs-dashboards-bluray-commit.Test changes
The existing
exit on omp should succeedcase broke with the meta forwarding, because the probe reads anomprecord withoutomp_bin/omp_bunasunreadable(production records carry them;bin/fm-spawn.shwrites them). The test now models production: the fake task meta forharness=ompbinds two real executables, and the tmux stub answerspane_pidplus a fakeps/lsofpair against a fixed pid pair so the identity probe can complete; every otherps/lsofinvocation delegates to the real tools.The focused assertion the brief asked for was cheap, so it exists:
fm-control exit: an omp record without its bound identity is unreadable, not aliveprovesagent_stateforwards the meta path (with the old two-argument call that case would classifyaliveand succeed).Validation
bin/fm-test-run.sh tests/fm-control*.test.sh: 3 scripts, 0 failed (fm-control.test.sh,fm-control-relaunch.test.sh,fm-control-herdr-smoke.test.sh).bin/fm-lint.sh(pinned ShellCheck 0.11.0, the repo's lint owner): clean. A bareshellcheck bin/fm-control.shreports the same two pre-existingSC2034/SC1091notes onmainand with this change alike; the pinned lint config is the owner and passes.bin/fm-doc-audience-check.sh: ok.npx unslop: no supported-file findings for the changed shell and markdown files.What I walked
This repo has no preview deployment; the walk is the test run plus a read-only live-lane check.
bin/fm-test-run.sh tests/fm-control*.test.sh(full output summary):The previously failing
exit on omp should succeedcase now passes, along with the new unbound-record refusal assertion.Two live OMP lanes are running in the primary home (
fm-aos-3771-saved-reply-missing-textandfm-aos-3847-chat-title-duplicatesshow abunforeground process intmux list-windows), and the first lane's task record carries the identity keys this fix relies on (harness=omp,omp_bin=.../@oh-my-pi/pi-coding-agent/dist/cli.js,omp_bun=.../.bun/bin/bun). Per the brief I ran only the read-only help path against a live lane, never interrupt, exit, or relaunch:No screenshots needed (no user-visible UI change).
Summary by CodeRabbit
Bug Fixes
Documentation
bluray.agee.devto the dashboard reference, including its host configuration, combined Blu-ray and UPCitemdb interface details, deployment requirements, and restart procedure.Tests