Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server): add Oh My Pi (omp) as an ACP provider #9038

ClosedNeon-Wang(GitHub profile, opens in a new tab)wants to merge 10 commits intomain fromrefs/pull/9038/headopened View on GitHub

Summary

Adds Oh My Pi (omp) as a built-in provider, closing #8985. omp is a pi-mono fork with a native, well-maintained ACP server mode (omp acp, stdio), so this rides the existing generic ACP client stack (apps/server/src/provider/acp/) — no new transport.

One deviation from the issue's original sketch: it proposed copying the Grok driver, but live probing showed omp's session/new returns parameterized configOptions (mode/model/thinking selects, 137 models) with no models array — the Cursor shape. The driver therefore follows the Cursor stack (CursorDriver/CursorAdapter/CursorProvider/CursorAcpSupport), not Grok's.

What's in the change

contracts

  • "omp" ProviderDriverKind + display name; OmpSettings (enabled off by default — same conservative posture as Cursor/Grok/OpenCode), wired through providers struct, OmpSettingsPatch, ServerSettingsPatch, and the server-side opt-in restoration (restoreUsedProviders, persisted-defaults, provider-history SQL).

server

  • acp/OmpAcpSupport.ts — spawn omp acp with approval flags per RuntimeMode: Supervised → --approval-mode=always-ask (explicit, so a user-side tools.approvalMode: yolo in ~/.omp can't silently disable prompting), Auto-accept edits → --approval-mode=write, Auto → --auto-approve, Full access → --approval-mode=yolo. Auth is omp's advertised agent method (existing ~/.omp credentials); nothing is managed by T3.
  • Layers/OmpProvider.ts — status probe (omp --version) plus a fully dynamic model catalog: omp is a meta-provider over user-configured upstreams, so a short-lived ACP probe session flattens the model select into the snapshot. Nothing hardcoded. Borrowed from the OpenCode playbook: sub-provider grouping from provider/ id prefixes, alphabetical sort, upstream-count status message, zero-models → warning.
  • Layers/OmpAdapter.ts — session lifecycle on the generic ACP runtime, plus:
    • Model/option application: model config written first, then options re-read — omp re-validates dependent selects per model (e.g. thinking accepts only off/auto under the auto model), so validating against pre-switch options produced rejected writes.
    • Reasoning effort: omp's thought_level-category thinking select maps to T3's reasoning control; the CLI's own currentValue supplies the default.
    • Subagents in the Agents panel: omp dispatches sub-agents through its task tool, which ACP carries as ordinary tool calls. The adapter recognizes task-shaped rawInput (single {task, agent?, effort?} or batch {tasks: [...]}) and emits task.started/task.completed with TaskAgentLinkage (role/effort/title), so omp sub-agents land in the Agents panel with zero new UI. The plain tool row stays in the timeline (Claude parity).
    • Approval prompts: omp's approval wrapper prompts through ACP elicitations in anything short of yolo. Two wire quirks are contained here: omp (official ACP SDK) sends elicitation/create while effect-acp's generated binding still listens on the older session/elicitation name — handled via the unknown-ext-request fallback, responding in the flat {action: "accept", content} shape the official SDK expects; and elicitations are bridged into T3's existing user-input request UI (select/confirm/input → questions).
  • Drivers/OmpDriver.ts + Services/OmpAdapter.ts + textGeneration/OmpTextGeneration.ts; registered in builtInDrivers.ts. Maintenance is manual-only (no guessed update command).

web/mobile — provider card ("Early Access", mirrors Grok), picker entries, Pi-glyph icon (omp is a Pi fork; no omp asset exists), mobile ProviderIcon.

docs — docs/user/install.md provider table, docs/user/permission-modes.md mode→flag mapping, docs/internals/providers.md driver table.

Verification

  • New tests: 47 omp-specific (adapter/provider/acp-support), all green; Cursor + Grok suites re-run clean against the shared, additively-extended mock ACP agent; ProviderRegistry/serverSettings/contracts settings tests updated and green. Typecheck clean for contracts, server, web, mobile.
  • End-to-end on macOS against omp/18.0.6 (screenshots below): enable + version probe, 137-model dynamic catalog with 4 upstream providers, streaming turns, Supervised approval dialog (approve → command ran; deny → graceful refusal), turn cancel ("You stopped after 26s"), subagent in Agents panel ("DoneReporter", role sonic, Completed) alongside the "Ran 1 subagent" timeline row.
Provider enabled + versionDynamic catalog (137 models)
providermodels
Supervised approval dialogSubagent in Agents panel
approvalagents

Deliberately out of scope (follow-ups)

  • Usage transcript scanning (UsageProviderKind is claude/codex/grok; omp's transcript formats differ)
  • omp's terminal auth method (client auth.terminal capability) for in-app credential setup
  • effect-acp's elicitation method-name drift (session/elicitation vs the official SDK's elicitation/create) — tracked in #9048; worked around at the adapter boundary here
  • Cursor adapter carries the same turn-lifecycle patterns this PR fixes for omp — tracked in #9047 (PR to follow)
  • omp's write tool is not permission-gated agent-side (only bash/edit/delete/move are), so file creations don't prompt under Supervised — that's omp's current ACP policy, surfaced here as-is

Model: kimi-code/k3 via Oh My Pi (omp)


Note

Medium Risk Introduces a new built-in provider on the core ACP session/turn path with non-trivial lifecycle and wire-format quirks; risk is mitigated by broad integration tests but regressions could affect threading, approvals, or streaming for omp threads.

Overview Adds Oh My Pi (omp) as a first-class provider so T3 can drive the omp acp CLI like other ACP-backed agents.

Server: New OmpDriver wires managed provider snapshots (version probe + dynamic model catalog from ACP configOptions), an OmpAdapter on the shared ACP runtime, and text generation. The adapter maps omp’s mode/model/thinking selects, plan interaction mode, in-session model switches, tool permissions (including snake_case option ids), elicitation/create user-input flows, and task tool calls into Agents panel task.started/task.completed events. It also handles turn steering, cancel-before-prompt, and fixes ACP notification consumption by forking the event consumer into the session scope (so streams survive after startSession returns).

Testing & mocks: acp-mock-agent gains omp-shaped modes/config, elicitation, task-tool, and delayed set_config_option fixtures; large adapter/provider integration suites exercise the above.

Product/docs: README install list and mobile ProviderIcon for omp.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 31a37852aab03870eda24e01df9a98712ecd4b63. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).

Note

Add Oh My Pi (omp) as an ACP provider across server, web, and contracts

  • Adds the full Oh My Pi provider stack: OmpDriver in the built-in registry, an ACP adapter in OmpAdapter.ts, a text-generation service in OmpTextGeneration.ts, and ACP support helpers in OmpAcpSupport.ts for spawn input, runtime construction, model selection, and permission-mode mapping.
  • Introduces OmpSettings and OmpSettingsPatch schemas in settings.ts with a disabled-by-default enabled flag, a configurable binary path, and hidden custom-model storage; server settings now persist and restore omp usage history.
  • Wires the web UI: the provider picker shows Oh My Pi with a new badge, the add-provider dialog removes the coming-soon Pi Agent entry, and provider settings metadata validates OmpSettings with an Early Access badge.
  • Model discovery runs omp --version then a scoped ACP probe within a 15-second timeout, building a sorted catalog from ACP configuration options with reasoning, context-window, and fast-mode capabilities.
  • Text-generation calls start a scoped unattended ACP session, apply model and thinking selections, enforce a 180-second timeout, and parse streamed agent text as schema-validated JSON for commit messages, PR content, branch names, and thread titles.
  • Updates the ACP mock agent to expose Oh My Pi-shaped configuration, modes, elicitation, and task-tool scenarios for integration tests.
  • Risk: BUILT_IN_DRIVERS now includes OmpDriver between GrokDriver and OpenCodeDriver; any code iterating or indexing this ordered list by position will shift. checkOmpProviderStatus spawns omp --version and an ACP probe process on enabled instances, which adds subprocess startup cost to provider status checks.
Macroscope summarized 31a3785.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. @@ -0,0 +340,21 @@
      340+ segments.push(segment.charAt(0).toUpperCase() + segment.slice(1));
      341+ }
      342+ }
      343+ return segments.join(" ");
      344+}
      345+
      346+/**
      347+ * Oh My Pi is a meta provider (like OpenCode): model ids advertised through
      348+ * the ACP `model` config option are `provider/model` pairs routed to upstream
      349+ * providers the user configured inside omp. Mirror OpenCode's presentation
      350+ * by surfacing the upstream provider as `subProvider` and sorting the catalog
      351+ * by display name so the picker stays usable with 100+ entries.
      352+ */
      353+function buildOmpDiscoveredModelsFromConfigOptions(
      354+ configOptions: ReadonlyArray<EffectAcpSchema.SessionConfigOption> | null | undefined,
      355+): ReadonlyArray<ServerProviderModel> {
      356+ const modelOption = findOmpModelConfigOption(configOptions ?? []);
      357+ if (!modelOption) {
      358+ return [];
      359+ }
      360+ const capabilities = buildOmpCapabilitiesFromConfigOptions(configOptions);
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟡 Medium Layers/OmpProvider.ts:360

      Every discovered model receives the capabilities of the probe session's current model, so models with different reasoning options advertise invalid choices or hide valid ones. After switching models, resolveOmpAcpConfigUpdates re-reads the model-specific options and drops unsupported selections, leaving omp's default effort instead. Discover capabilities per model, or avoid assigning the current model's capabilities to the entire catalog.

      🤖 Copy this AI Prompt to have your agent fix this:
      In file @apps/server/src/provider/Layers/OmpProvider.ts around line 360:
      
      Every discovered model receives the capabilities of the probe session's current model, so models with different reasoning options advertise invalid choices or hide valid ones. After switching models, `resolveOmpAcpConfigUpdates` re-reads the model-specific options and drops unsupported selections, leaving `omp`'s default effort instead. Discover capabilities per model, or avoid assigning the current model's capabilities to the entire catalog.

      Fair point, and it mirrors the Cursor driver this is modeled on: one ACP probe session reads the config options of the CLI current model, and the catalog shares them. Per-model discovery would mean an ACP session spawn per model (~137 spawns per status check), which is not viable. The runtime path is already safe against the mismatch: on model switch the adapter re-reads the post-switch options and drops selections the new model does not advertise (regression-tested), so a stale capability degrades to the CLI default rather than producing a rejected write. Per-model capabilities need a cheaper discovery channel on the omp side; noted as a follow-up in the PR body.

      Sorry, I'm unable to act on this request because you do not have permissions within this repository.

    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Not approved

      Macroscope's review found this PR not approvable — This PR adds a substantial subprocess-backed ACP provider with dynamic model discovery, approval handling, session lifecycle, subagent events, and text-generation workflows across server, contracts, web, and mobile. The breadth of new runtime behavior, unresolved lifecycle and model-catalog concerns, and product-default/static-analysis changes require human review.

      Not approved because:

      • 6 blocking correctness issues found at or above your repo's Minimum Blocking Severity
      Adjust the Minimum Blocking Severity for this repo — including turning it Off — in [Settings](https://app.macroscope.com/pingdotgg/settings#Repos). You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Hi @t3dotgg @juliusmarminge — gentle nudge on this one when you have a moment. 🙂

      State of play: all bot checks are green (Macroscope ×3, Bugbot, CodeRabbit), every review thread has been addressed or answered, and the flow is verified end-to-end locally against omp/18.0.6 (provider enable, 137-model dynamic catalog, streaming, approval dialog in Supervised, cancel, and subagents landing in the Agents panel — screenshots in the description).

      It's off-by-default like Cursor/Grok, so it can't affect anyone who doesn't opt in. Happy to rebase, split, or adjust anything that would make it easier to review — just say the word. Thanks!

    5. Note

      🤖 GPT-6 Astra (preview) responding on behalf of Theo

      This note is part of an automated cleanup pass.

      Carry the approval edge cases from #8583 at its head commit into this provider review: an always-allow decision must fall back to a usable allow-once option, blank option IDs must not force cancellation, and no usable option must be handled explicitly. A human comment on that PR also reports that OMP ACP advertises plan through availableModes and changes it through session/set_mode. Verify negotiated modes before describing Plan as unsupported. The separate Z.AI/Claude setup guide in the original PR is optional docs work, not part of the OMP protocol decision.

    6. @@ -0,0 +1331,21 @@
      1331+ }
      1332+
      1333+ const result = yield* ctx.acp
      1334+ .prompt({
      1335+ prompt: promptParts,
      1336+ })
      1337+ .pipe(
      1338+ Effect.mapError((error) =>
      1339+ mapAcpToAdapterError(PROVIDER, input.threadId, "session/prompt", error),
      1340+ ),
      1341+ );
      1342+
      1343+ const turnRecord = ctx.turns.find((turn) => turn.id === turnId);
      1344+ if (turnRecord) {
      1345+ turnRecord.items.push({ prompt: promptParts, result });
      1346+ } else {
      1347+ ctx.turns.push({ id: turnId, items: [{ prompt: promptParts, result }] });
      1348+ }
      1349+ ctx.session = {
      1350+ ...ctx.session,
      1351+ activeTurnId: turnId,
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟡 Medium Layers/OmpAdapter.ts:1351

      Completed turns remain marked active: ctx.session.activeTurnId is set to turnId here and neither it nor ctx.activeTurnId is cleared when the prompt settles. As a result, listSessions() reports idle sessions as busy and a later targeted interruptTurn accepts the stale id and calls acp.cancel; clear both active-turn fields when the final prompt settles, including cancellation and failure paths.

      🤖 Copy this AI Prompt to have your agent fix this:
      In file @apps/server/src/provider/Layers/OmpAdapter.ts around line 1351:
      
      Completed turns remain marked active: `ctx.session.activeTurnId` is set to `turnId` here and neither it nor `ctx.activeTurnId` is cleared when the prompt settles. As a result, `listSessions()` reports idle sessions as busy and a later targeted `interruptTurn` accepts the stale id and calls `acp.cancel`; clear both active-turn fields when the final prompt settles, including cancellation and failure paths.
      @@ -0,0 +1053,21 @@
      1053+ session,
      1054+ scope: sessionScope,
      1055+ acp,
      1056+ notificationFiber: undefined,
      1057+ pendingApprovals,
      1058+ pendingUserInputs,
      1059+ cancelledTurnIds: new Set(),
      1060+ ompSubagentTasks: new Map(),
      1061+ turns: [],
      1062+ lastPlanFingerprint: undefined,
      1063+ activeTurnId: undefined,
      1064+ promptsInFlight: 0,
      1065+ stopped: false,
      1066+ };
      1067+
      1068+ const nf = yield* Stream.runDrain(
      1069+ Stream.mapEffect(acp.getEvents(), (event) =>
      1070+ Effect.gen(function* () {
      1071+ switch (event._tag) {
      1072+ case "EventStreamBarrier":
      1073+ yield* Deferred.succeed(event.acknowledge, undefined);
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟠 High Layers/OmpAdapter.ts:1073

      When the ACP transport/process emits ConnectionTerminated, this switch ignores it, leaving ctx.stopped false and the dead context in sessions. hasSession() therefore continues to report a usable session, so later turns reuse the zombie instead of spawning a new ACP child, and no session.exited error event is emitted. Handle ConnectionTerminated by tearing down/removing the context and publishing the appropriate error exit event.

      🤖 Copy this AI Prompt to have your agent fix this:
      In file @apps/server/src/provider/Layers/OmpAdapter.ts around line 1073:
      
      When the ACP transport/process emits `ConnectionTerminated`, this switch ignores it, leaving `ctx.stopped` false and the dead context in `sessions`. `hasSession()` therefore continues to report a usable session, so later turns reuse the zombie instead of spawning a new ACP child, and no `session.exited` error event is emitted. Handle `ConnectionTerminated` by tearing down/removing the context and publishing the appropriate error exit event.
    7. @@ -0,0 +699,21 @@
      699+ });
      700+ discoveryWarning = OMP_ACP_MODEL_DISCOVERY_FAILED_MESSAGE;
      701+ } else if (Option.isNone(discoveryExit.value)) {
      702+ discoveryWarning = `Oh My Pi ACP model discovery timed out after ${OMP_ACP_MODEL_DISCOVERY_TIMEOUT_MS}ms.`;
      703+ } else if (discoveryExit.value.value.length === 0) {
      704+ discoveryWarning = "Oh My Pi ACP model discovery returned no built-in models.";
      705+ } else {
      706+ discoveredModels = discoveryExit.value;
      707+ }
      708+ const resolvedModels = Option.getOrElse(
      709+ Option.filter(discoveredModels, (models) => models.length > 0),
      710+ () => [] as const,
      711+ );
      712+ // Meta-provider reporting (mirrors OpenCode): tell the user how many
      713+ // upstream providers the discovered `provider/model` catalog routes to.
      714+ const upstreamCount = countOmpUpstreamProviders(resolvedModels);
      715+ return buildOmpProviderSnapshot({
      716+ checkedAt,
      717+ ompSettings,
      718+ version,
      719+ discoveredModels: resolvedModels,
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟠 High Layers/OmpProvider.ts:719

      When ACP discovery returns an empty catalog, this passes [] as discoveredModels, but ProviderRegistry.mergeProviderModels retains the previous non-custom models for Oh My Pi. Removed models therefore remain selectable after refresh and are sent to omp even though they are no longer available. Ensure an empty successful discovery clears prior Oh My Pi models, or exclude Oh My Pi from the missing-model retention rule.

      🤖 Copy this AI Prompt to have your agent fix this:
      In file @apps/server/src/provider/Layers/OmpProvider.ts around line 719:
      
      When ACP discovery returns an empty catalog, this passes `[]` as `discoveredModels`, but `ProviderRegistry.mergeProviderModels` retains the previous non-custom models for Oh My Pi. Removed models therefore remain selectable after refresh and are sent to `omp` even though they are no longer available. Ensure an empty successful discovery clears prior Oh My Pi models, or exclude Oh My Pi from the missing-model retention rule.
    8. Carried the #8583 approval edge cases into the interactive permission path (31a3785):

      • always-allow fallback: acceptForSession now maps to the agent's allow_always option, falling back to its allow_once when allow_always isn't offered (omp's PERMISSION_OPTIONS always include both, but other ACP agents may not).
      • blank option ids: options with blank/whitespace ids are treated as unusable and skipped during kind matching.
      • no usable option: the request now settles as cancelled instead of answering with a hardcoded id the agent never advertised (the previous fallback). Pure-function unit tests cover all three edges (selectOmpPermissionOptionId), plus a wire-level test asserting the advertised ids are what actually goes back.

      On plan mode: agreed — omp advertises plan through availableModes and honors session/set_mode. The adapter maps T3's plan interaction mode onto it (ACP_PLAN_MODE_ALIASES = ["plan"]) rather than claiming it unsupported.

      Also rebased onto current main (Antigravity merge included); on the ThoughtDelta front I converged onto your implementation — the adapter now consumes the shared ThoughtDelta event instead of my earlier ContentDelta/streamKind variant.

    9. @@ -0,0 +440,21 @@
      440+ ? false
      441+ : undefined;
      442+ if (value !== undefined) {
      443+ content[key] = value;
      444+ }
      445+ continue;
      446+ }
      447+ if (property.type === "array") {
      448+ const values = Array.isArray(raw)
      449+ ? raw.filter(
      450+ (value): value is string => typeof value === "string" && value.trim().length > 0,
      451+ )
      452+ : typeof raw === "string" && raw.trim().length > 0
      453+ ? [raw]
      454+ : [];
      455+ if (values.length > 0) {
      456+ content[key] = values;
      457+ }
      458+ continue;
      459+ }
      460+ if (typeof raw === "string" && raw.trim().length > 0) {
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟡 Medium Layers/OmpAdapter.ts:460

      Numeric elicitation answers are sent as strings, so entering 42 for a number or integer property produces { field: "42" } instead of a numeric JSON value and the ACP request cannot satisfy the schema. Convert string answers to numbers before populating content (and reject invalid or non-integer values for the corresponding property type).

      🤖 Copy this AI Prompt to have your agent fix this:
      In file @apps/server/src/provider/Layers/OmpAdapter.ts around line 460:
      
      Numeric elicitation answers are sent as strings, so entering `42` for a `number` or `integer` property produces `{ field: "42" }` instead of a numeric JSON value and the ACP request cannot satisfy the schema. Convert string answers to numbers before populating `content` (and reject invalid or non-integer values for the corresponding property type).
      @@ -0,0 +373,21 @@
      373+ readonly sessionId?: string | undefined;
      374+ readonly message?: string | undefined;
      375+ readonly requestedSchema?:
      376+ | {
      377+ readonly type?: string | undefined;
      378+ readonly properties?: Readonly<Record<string, OmpElicitationPropertyLike>> | undefined;
      379+ }
      380+ | undefined;
      381+}
      382+
      383+/**
      384+ * Maps an omp form elicitation's JSON-schema properties onto T3 user-input
      385+ * questions. Select-style properties (string+enum, boolean) get option lists;
      386+ * everything else falls back to free text (the web composer supports custom
      387+ * answers).
      388+ */
      389+export function ompElicitationQuestionsFromForm(
      390+ params: OmpElicitationFormLike,
      391+): ReadonlyArray<UserInputQuestion> {
      392+ const fallbackQuestion = params.message?.trim() || "Oh My Pi requests input.";
      393+ return Object.entries(params.requestedSchema?.properties ?? {}).map(([key, property]) => {
      macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      🟡 Medium Layers/OmpAdapter.ts:393

      ompElicitationQuestionsFromForm emits a T3 question for every schema property, so optional omp fields are treated as mandatory by the web/mobile answer builders and the form cannot be accepted unless users fill them or cancel. Filter the emitted questions to the schema's required properties while still allowing omitted optional answers in the response.

      🤖 Copy this AI Prompt to have your agent fix this:
      In file @apps/server/src/provider/Layers/OmpAdapter.ts around line 393:
      
      `ompElicitationQuestionsFromForm` emits a T3 question for every schema property, so optional omp fields are treated as mandatory by the web/mobile answer builders and the form cannot be accepted unless users fill them or cancel. Filter the emitted questions to the schema's `required` properties while still allowing omitted optional answers in the response.
    10. Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

      Fix All in Cursor ❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the [Cursor dashboard](https://www.cursor.com/dashboard/bugbot). Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 31a37852aab03870eda24e01df9a98712ecd4b63. Configure [here](https://www.cursor.com/dashboard/bugbot).
      @@ -0,0 +1180,21 @@
      1180+
      1181+ return session;
      1182+ }).pipe(Effect.scoped),
      1183+ );
      1184+
      1185+ const sendTurn: OmpAdapterShape["sendTurn"] = (input) =>
      1186+ Effect.gen(function* () {
      1187+ const ctx = yield* requireSession(input.threadId);
      1188+ // A sendTurn while a prompt is in flight is a steer: the agent folds
      1189+ // the new prompt into the ongoing work, so the active turn id is
      1190+ // reused instead of opening a new turn.
      1191+ const steeringTurnId = ctx.promptsInFlight > 0 ? ctx.activeTurnId : undefined;
      1192+ const turnId = steeringTurnId ?? TurnId.make(yield* randomUUIDv4);
      1193+ // Count this prompt immediately so a superseded in-flight prompt
      1194+ // resolving from here on does not settle the turn; the matching
      1195+ // decrement is the `ensuring` below. Bind the active turn id in the
      1196+ // same synchronous stretch: after the increment, a concurrent
      1197+ // sendTurn must already see this turn id or it would steer onto the
      1198+ // previous one.
      1199+ ctx.promptsInFlight += 1;
      1200+ ctx.activeTurnId = turnId;

      Concurrent sendTurn splits turn identity

      Medium Severity

      sendTurn decides whether this call is a steer from promptsInFlight, then yields to mint a turn id before incrementing that counter. Two overlapping first sends can both observe an idle session, allocate different turn ids, and each emit turn.started, so steering no longer merges onto one turn.

      Fix in Cursor Fix in Web
      Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 31a37852aab03870eda24e01df9a98712ecd4b63. Configure [here](https://www.cursor.com/dashboard/bugbot).
    11. juliusmarminge closed this

    12. Closing as part of the open-PR backlog sweep (wave 2).

      Reason: Duplicate OMP provider rebuild after closed #8157/#8183/#8224/#8582; generic ACP path is #9060 Related: #9060

      Reopen if this is still wanted and you’re willing to rebase onto current main.

Sign in to join this conversation.