GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — V2 event provider adapters by juliusmarminge · Pull Request #133 · pingdotgg/t3code

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Mar 1, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Implement v2 canonical event emission for Claude, Codex, and Cursor provider adapters to standardize event structure and enable the new Cursor agent.


Open in Web Open in Cursor 

Note

Add Cursor ACP provider adapter and adopt v2 canonical runtime events across server adapters and ingestion

Introduce a new cursor adapter wired into ProviderAdapterRegistryLive and server composition; migrate adapters, tests, and ingestion to v2 canonical runtime events (content.delta, item.*, request.*, payload-based turn states); extend provider runtime contracts with new event types, payloads, and ID types; update stale session recovery to drop resumeThreadId; broaden test harnesses to accept generic event records.

📍Where to Start

Start with the Cursor adapter implementation in makeCursorAdapterLive in CursorAdapter.ts, then review the event mapping overhaul in CodexAdapter.ts and the contract updates in providerRuntime.ts.

📊 Macroscope summarized 14865dc. 10 files reviewed, 47 issues evaluated, 1 issue filtered, 1 comment posted

🗂️ Filtered Issues

apps/server/src/orchestration/Layers/CheckpointReactor.ts — 0 comments posted, 2 evaluated, 1 filtered
  • line 65: The newly added turnStateFromCompletion function strictly validates the event status against a hardcoded list ("completed", "failed", "interrupted", "cancelled"). If the provider runtime emits any other failure status (e.g., "error", "timeout", "aborted") or uses a different casing (e.g., "FAILED"), the function returns undefined. This undefined value is then passed to checkpointStatusFromRuntime (line 340), which falls back to the default case returning "ready". Consequently, unhandled failure modes are silently converted into successful ("ready") checkpoints, potentially corrupting the orchestration state with invalid checkpoints. [ Out of scope ]

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cursor

cursor Bot commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch cursor/v2-event-provider-adapters-068b

Comment @coderabbitai help to get the list of available commands and usage tips.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot reviewed Mar 1, 2026
View reviewed changes
Comment thread apps/server/src/provider/Layers/CodexAdapter.ts
Comment on lines +856 to +864
const delta =
firstNonEmptyString(
event.textDelta,
payload?.delta,
payload?.text,
payload?.outputDelta,
payload?.summaryTextDelta,
payload?.textDelta,
) ?? "";

@macroscopeapp macroscopeapp Bot Mar 1, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium Layers/CodexAdapter.ts:856

Using firstNonEmptyString here trims the delta text, corrupting indentation and whitespace. Consider using asString instead to preserve the raw content.

-    const delta =
-      firstNonEmptyString(
-        event.textDelta,
-        payload?.delta,
-        payload?.text,
-        payload?.outputDelta,
-        payload?.summaryTextDelta,
-        payload?.textDelta,
-      ) ?? "";
+    const delta =
+      asString(event.textDelta) ??
+      asString(payload?.delta) ??
+      asString(payload?.text) ??
+      asString(payload?.outputDelta) ??
+      asString(payload?.summaryTextDelta) ??
+      asString(payload?.textDelta) ??
+      "";
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file apps/server/src/provider/Layers/CodexAdapter.ts around lines 856-864:

Using `firstNonEmptyString` here trims the delta text, corrupting indentation and whitespace. Consider using `asString` instead to preserve the raw content.

Evidence trail:
CodexAdapter.ts lines 111-120: `firstNonEmptyString` function definition shows it returns `value.trim()`. CodexAdapter.ts lines 95-97: `asString` function returns raw string without trimming. CodexAdapter.ts lines 850-865: Context shows `firstNonEmptyString` is used for delta events including `item/commandExecution/outputDelta` and `item/fileChange/outputDelta` where whitespace preservation is critical.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@juliusmarminge
juliusmarminge force-pushed the codething/648ca884 branch 9 times, most recently from 7a9b3d3 to ac45b82 Compare March 4, 2026 18:48
@juliusmarminge juliusmarminge closed this Mar 6, 2026
@ratulsarna ratulsarna mentioned this pull request Mar 7, 2026
Preserve Codex subagent thread.started metadata ratulsarna/t3code#1
Merged
piero-dev25 added a commit to piero-dev25/devgame that referenced this pull request Aug 11, 2026
@piero-dev25 @claude
merge upstream/main into DevGame (v0.0.32 line, 71 commits)
edd7b5d
Second upstream sync on this branch: pingdotgg/t3code main at 2c7267a
("stop the reaper from silently killing live background subagents", pingdotgg#5677)
into the DevGame fork. 19 conflicted paths, resolved under the standing
doctrine (upstream structure wins; fork features re-expressed inside it;
the fork's deliberate deletions stand).

Highlights taken from upstream: background-subagent reaper + settling
fixes (pingdotgg#5677/pingdotgg#5568), sidebar v2 promoted to THE sidebar (pingdotgg#5672 --
SidebarV2.tsx renamed Sidebar.tsx, old sidebar now LegacySidebar.tsx
behind Settings -> Legacy features), plans fold into chat (pingdotgg#5558, plan
sidebar deleted), agents observability panel (pingdotgg#5219), MCP tool-result
payload slimming (pingdotgg#5482), thread pagination (pingdotgg#5493), per-device provider
settings (pingdotgg#4479), theme library + configurable fonts (pingdotgg#5103), thread
pinning (pingdotgg#5312/pingdotgg#5581), reconnect-warning grace (pingdotgg#5670), mobile 1.0.2.

Notable resolution rulings:
- Right panel collapses to agents-only: upstream retired "plan", the fork
  had already moved preview/terminal/diff/files to the dock. ChatView's
  right-panel plumbing reduced accordingly; persistence shim now
  ALLOWLISTS the surviving kind, tolerates corrupt entries, and prunes
  records it empties (three tests updated to the pruned contract).
- Migration id space: fork ids 36/37 (spaces) stay where deployed DevGame
  databases recorded them; upstream's three arrivals take 38/39/40 with
  files renamed to match. Crossover hazard from stock-T3 data dirs is
  documented at the manifest and tracked with the storage-isolation task.
- useThreadSidebarComponent re-pointed at Sidebar/LegacySidebar via
  useLegacySidebarEnabled (forceV1 gone -- /settings* mounts
  SettingsSidebarNav, no thread sidebar). The pingdotgg#111 aria-label derivation
  ported into the renamed Sidebar.tsx.
- Locale-fragile upstream snooze tests (pingdotgg#4438 asserts en-US "PM") made
  locale-agnostic; ThemeSettings copy re-branded to DevGame; upstream's
  text-secondary-label token applied in the fork's MessageImageGrid.

Verification: typecheck exit 0 across every package (incl. server +
desktop run separately); suites green -- server 2197, web 2400, scripts
227, contracts 228. Four-lens Opus merge-gate review over the resolution:
31 findings, 29 fixed in this commit, 2 filed as follow-up tasks (pingdotgg#133
right-panel chooser UX -- pre-existing; pingdotgg#134 migration ledger guard).

Co-Authored-By: Claude Fable 5 <[email protected]>
@Jacksondr5 Jacksondr5 mentioned this pull request Aug 31, 2026
feat(web): render outbound A2A cards Jacksondr5/j5code#24
Merged
@fzoll fzoll mentioned this pull request Sep 4, 2026
Per-repo (gitCommonDir-keyed) lock around fetch + resolveRemoteTrackingCommit in worktree provisioning fzoll/t3code#4
Open
TomCohenDev pushed a commit to TomCohenDev/t3code that referenced this pull request Oct 18, 2026
@Yarden-zamir
Merge pull request pingdotgg#133 from Yarden-zamir/fix/ws-launch-bran…
5053b40
…ch-check

fix(server): client launches with a branch get the early worktree check
HaukeSchnau added a commit to HaukeSchnau/t3code that referenced this pull request Oct 27, 2026
@HaukeSchnau
Merge pull request 'ci: run upstream's remaining checks on Calder' (p…
c46a243
…ingdotgg#133) from ci/upstream-checks into main
HaukeSchnau added a commit to HaukeSchnau/t3code that referenced this pull request Nov 17, 2026
@HaukeSchnau
ci: the macOS launch check uses a mock keychain inside m1's pull-requ…
d8e8253
…est sandbox

m1 runs pull-request steps as the calder-pr user under sandbox-exec (infra
pingdotgg#133). That user has no login keychain, so Electron's safeStorage would block
on a keychain dialog; --use-mock-keychain avoids it. --no-sandbox was already
passed, which Chromium also needs inside sandbox-exec.
gmackie pushed a commit to gmackie/t3code that referenced this pull request Nov 18, 2026
gmackie
Merge pull request 'test(ssh): T3CODE-118 make archive fixtures porta…
8c23612
…ble' (pingdotgg#133) from T3CODE-118-node-fixture into custom-local
yasinuslu added a commit to yasinuslu/t3code that referenced this pull request Nov 22, 2026
@yasinuslu
Merge pull request 'chore: sync upstream main (3f08098, 69 commits)' (p…
0dd9e63
…ingdotgg#133) from sync/upstream-2026-11-22-0330 into dev

Reviewed-on: https://git.nepjua.org/yasinuslu/t3code/pulls/133
Abdullah1738 added a commit to Abdullah1738/t3code that referenced this pull request Nov 24, 2026
@Abdullah1738
Merge imessage/133-unphased-bound-reply: keep unphased bound reply pa…
329a50f
…st sibling idle (pingdotgg#133)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.