Repository navigation
Conversation
OMP is a first-class TuiAgent, but with no entry in COMMIT_MESSAGE_AGENT_SPECS, resolveCommitMessageAgentChoice returned null for a spec-less default agent and every Source Control AI operation failed with 'Choose a supported Source Control AI agent' — most visibly the first-work auto branch rename, which silently kept generated creature branch names (stablyai#15646). Adds the spec using the invocation verified against omp v17 in the report: prompt on stdin, '-p --no-session --no-tools --mode text', model resolved from OMP's own config (single config-default entry, the Kimi 'default' pattern — this invocation carries no model flag). The supported-agents error list derives from the registry, so it picks OMP up automatically.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughAdded OMP as a static commit-message agent. The specification sends prompts through stdin, uses non-session text mode without tools, and configures the Merge Risk: ⚪ Minimal · up to This is a localized OMP commit-message integration with regression coverage; no actionable merge-blocking risk remains, so it is merge-ready after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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 |
|
Superseded by #20624 (OMP Source Control AI support), which contains the current implementation and verification on . Closing this stale duplicate so review stays on the maintained PR. |
|
Superseded by #20624. |
Summary
What
Adds an
ompentry toCOMMIT_MESSAGE_AGENT_SPECS, so a default TUI agent of OMP resolves to a working Source Control AI agent instead of failing.Why
#15646 —
ompis a first-classTuiAgent(PTY launch, hooks, AI Vault session scanning) but had no commit-message spec, soresolveCommitMessageAgentChoice(null, 'omp')hit thegetCommitMessageAgentSpec(defaultTuiAgent) ? defaultTuiAgent : nullbranch and returnednull— turning every Source Control AI operation into "Choose a supported Source Control AI agent…". Most visible: the first-work auto branch rename silently failed, leaving Orca-created creature branches (<user>/Nautilus-8) with their generated names.Spec details — from the invocation the reporter verified against omp v17.3.7:
-p --no-session --no-tools --mode textdefaultpattern for CLIs without a per-call model flag)The "Supported agents: …" error list derives from
listCommitMessageAgentCapabilities(), so it picks OMP up with no further changes.Testing
commit-message-agent-spec.test.ts: the spec exists, delivers via stdin, builds exactly the verified argv, defaults to config-default, and — the regression that matters —resolveCommitMessageAgentChoice(null, 'omp')now returns'omp'. Verified to fail on the pre-change registry.commit-message-agent-spec/-generation/-plan75/75,source-control-ai25/25,pnpm run typecheckclean.Fixes #15646