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 — Align text generation error catches by juliusmarminge · Pull Request #3292 · pingdotgg/t3code

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Jun 20, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Summary

  • use exhaustive Effect.catchTags for all remaining unclaimed text-generation schema decode failures
  • preserve the original schema/ACP error as cause when translating to TextGenerationError
  • remove valueless Cursor/Grok constructor wrappers and use direct Schema.is predicates

Validation

  • vp test apps/server/src/textGeneration/ClaudeTextGeneration.test.ts apps/server/src/textGeneration/CodexTextGeneration.test.ts apps/server/src/textGeneration/CursorTextGeneration.test.ts apps/server/src/textGeneration/GrokTextGeneration.test.ts apps/server/src/textGeneration/OpenCodeTextGeneration.test.ts (36 passed)
  • vp check (passes with 20 pre-existing warnings)
  • vp run typecheck

Note

Low Risk
Refactor-only with preserved error messages and causes; covered by existing text-generation unit tests.

Overview
Standardizes Effect error handling across Claude, Codex, Cursor, Grok, and OpenCode text-generation adapters.

Schema decode failures now use Effect.catchTags instead of Effect.catchTag, still mapping SchemaError to TextGenerationError with the same user-facing detail strings and the original error as cause.

In Cursor and Grok, local map*AcpError helpers and hand-rolled isTextGenerationError checks are removed in favor of direct TextGenerationError construction and Schema.is(TextGenerationError) for re-throwing already-normalized errors.

Reviewed by Cursor Bugbot for commit b24886f. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Align error handling across text generation backends to use Effect.catchTags

  • Replaces all Effect.catchTag("SchemaError", ...) calls with Effect.catchTags({ SchemaError: ... }) across Claude, Codex, Cursor, Grok, and OpenCode backends for consistency.
  • Replaces manual _tag-based type guard functions in Cursor and Grok with schema-based predicates using Schema.is(TextGenerationError).
  • Removes mapCursorAcpError and mapGrokAcpError helpers, inlining explicit TextGenerationError construction with cause at each error site (model selection, ACP request, text generation).

Macroscope summarized b24886f.

Sorry, something went wrong.

Uh oh!

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

All reactions
@juliusmarminge @codex
Align text generation error catches
b24886f
Co-authored-by: codex <[email protected]>
@coderabbitai

coderabbitai Bot commented Jun 20, 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.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 389f3dde-fb9e-4050-9776-19c0f8ce07b0

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
  • Commit unit tests in branch codex/align-text-generation-error-catches

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.

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Jun 20, 2026
@macroscopeapp

macroscopeapp Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved

Mechanical refactoring that aligns error handling patterns across text generation files. Changes are purely stylistic - swapping equivalent Effect APIs and inlining helper functions - with no impact on runtime behavior.

You can customize Macroscope's approvability policy. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

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

macroscopeapp[bot]
macroscopeapp Bot approved these changes Jun 20, 2026
View reviewed changes
@juliusmarminge
juliusmarminge merged commit bd8e3ee into main Jun 20, 2026
16 checks passed

Uh oh!

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

@juliusmarminge
juliusmarminge deleted the codex/align-text-generation-error-catches branch June 20, 2026 19:29
slan48 pushed a commit to slan48/t3code that referenced this pull request Jun 24, 2026
@sagamez-crimsonagility
Merge upstream/main (v0.0.27 → v0.0.28-nightly) into fork
927abf1
Fork customization triage:
- Item 2 (AGENTS.md), Item 3 (.gitignore): untouched upstream, kept.
- Item 4 (Cmd+B sidebar.toggle): SUPERSEDED by upstream pingdotgg#3497 'Add main
  sidebar toggle'. Adopted upstream's SidebarControl handler + UI wholesale;
  dropped our capture-phase SidebarShortcutHandler and orphaned
  isSidebarToggleShortcut helper. Pending manual smoke test (composer/terminal
  focus).
- Item 5 (sidecar prompt-injection hardening): KEPT. Upstream pingdotgg#3196/pingdotgg#3292
  refactored the invocation (resolveSpawnCommand) and reverted to
  --dangerously-skip-permissions; auto-merge preserved our
  --permission-mode default --allowed-tools StructuredOutput swap + tests.
- Item 6(a) (live token usage in working row): KEPT, re-integrated
  activeContextWindow threading onto upstream's reworked MessagesTimeline
  (made the prop optional).
- Item 6(b) (in-flight tool-call rows): DROPPED as superseded by upstream
  pingdotgg#3022 work-log rework (toolLifecycleStatus + WorkEntryIconSvg). Removed
  status field usage, took upstream's session-logic.{ts,test.ts} wholesale.
NeilTheFisher pushed a commit to NeilTheFisher/t3code that referenced this pull request Aug 18, 2026
@juliusmarminge @codex
Align text generation error catches (pingdotgg#3292)
abcc595
Co-authored-by: codex <[email protected]>
darjss pushed a commit to darjss/t3code that referenced this pull request Aug 26, 2026
@juliusmarminge @codex
Align text generation error catches (pingdotgg#3292)
2867116
Co-authored-by: codex <[email protected]>
gabrielMalonso pushed a commit to gabrielMalonso/t3code that referenced this pull request Sep 4, 2026
@juliusmarminge @codex
Align text generation error catches (pingdotgg#3292)
0714396
Co-authored-by: codex <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

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.