Repository navigation
feat(workspace): offer OmO in the new-session dialog - #163
Conversation
|
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 configurationConfiguration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe server lists OmO when ChangesOmO Agent Support
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to The OmO option is scoped to the selected PC, and a startup timeout retains the workspace and returns the existing failure response. No confirmed material issue blocks merging. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to The new launcher can report a failed start without confirming that the launched process has stopped. Existing access controls remain in place, but the resulting workspace and process lifecycle warrants review. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 4 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
# Conflicts: # CHANGELOG.md # server/omo.contract.test.ts
Change
The new-session dialog listed every kind herdr's
agent.startsupports, and omo is not one of them (herdr agent start --kindaccepts pi, claude, codex, … but no omo), so OmO could not be picked.GET /api/agentsadds{ kind: "omo", label: "OmO" }whenomois on this server's PATH (Bun.which), so it is offered only where it can run. Remote PCs answer from their own bridge, so each PC decides for itself.POST /api/workspace/createwithagent.kind === "omo"calls the newstartOmo(server/omo.ts) instead ofagent.start. It typesomoplus the shell-quotedargsinto the new root pane's shell withpane.send_text, then pollspane.process_infoevery 250 ms until an omo process is in the foreground. The deadline is 60 s, the same bound asagent.startand the dialog's "up to 60s". On timeout the response is the usualagent_started: falsewitherror.code: "agent_start_failed", and the workspace is kept.agent.startunchanged. No client change: the picker already renders the omo mark.Validation
bun run typecheck: passbun test ./server/omo.contract.test.ts(isolated herdr): 3 pass. The new test starts a stand-in omo through a real pane's shell, checks that an argument with a quote arrives as one argv word, and checks that a command which never becomes omo rejects at the deadline.bun test ./server/api.contract.test.ts -t 'agent kinds|workspace': 5 pass. The agent list is still sorted by label with omo in it.GET /api/agentslisted{"kind":"omo","label":"OmO"}, andPOST /api/workspace/create {agent:{kind:"omo"}}answered 200agent_started: truein 757 ms with omo'sbun …/senpi/dist/bundle/cli.jsas the pane's foreground process.Merging this and #162 in either order leaves a small CHANGELOG conflict under [Unreleased].