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 — feat(clients): Explain links a known issue or a pre-filled report by saphid · Pull Request #16702 · pingdotgg/t3code

Conversation

@saphid

@saphid saphid commented Oct 7, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

2026-10-23 verification at 540cb5e5ef. The complete main-based contribution still includes Explain, provider isolation, known-issue lookup and report links. Main’s extracted error banner receives the feature state. Focused non-browser service/provider tests and scoped lint/format pass. This remains a draft; architecture/product approval and client acceptance are outstanding.

Earlier validation counts, review verdicts, CI status and captures below refer to their original revisions; older “current head” wording refers to those revisions. These focused local checks do not certify the whole suite.

Model: Claude Opus 5.5 and Claude Sonnet 5.5. Rebased onto current main with Claude Opus 5.5 on 2026-10-12.

Review scope: this PR currently targets main; its complete contribution contains 45 files, including the inherited Explain action, provider text-generation integration, contracts and authorization, as well as known-issue lookup and report links. Review the full base-to-head range. The architecture and product direction still need maintainer approval.

Earlier status

Lint compatibility repair at 153f581:

  • Removed only the three-line section-divider comment and its blank separator in packages/provider-core/src/server/textGenerationPrompts.ts. Runtime code and prompt strings are unchanged.
  • Focused vp lint --report-unused-disable-directives packages/provider-core/src/server/textGenerationPrompts.ts reproduced the parent's t3code/no-low-value-comments error and passed after removal. vp fmt --check on the file and git diff --check passed. Verification used an exact-head minimal source fixture with existing dependencies; no installs or checkout changes.
  • Parent 0ff6a0d passed Build and Typecheck, Test, Test Web, Release Smoke, all eight server shards and native fingerprint. Its Lint job failed on this single error, and aggregate Check failed. Current-head CI passed aggregate Check, Build and Typecheck, Test, Test Web, Lint, Release Smoke and all eight server shards. The native fingerprint rerun passed after an earlier cancelled duplicate.
  • Runtime tests and client captures were not repeated for a comment-only change. Fresh independent review was not launched under the recovery instruction prohibiting delegates. The isolated source fixture has no Git hooks; focused lint and formatting ran explicitly.
  • The Explain and known-issue lookup product direction still needs maintainer approval. This repair does not establish that approval or replace review of the complete contribution.

Problem

Explain (#16685) tells the user what probably went wrong, but not whether it is a problem other people already have. Someone hitting a known bug has no quick way to find its issue, and someone hitting a new one has to work out where and how to report it.

Change

When the user clicks Explain, the server also checks pingdotgg/t3code's issues for a match:

  • Known issue: if one matches, the banner shows Known issue: Add Expo mobile client and wire up dev:mobile workflow #123 <title> as a link.
  • Otherwise: the banner shows Report this issue, which opens GitHub's bug form in the browser with safe fields pre-filled, and copies the error, What happened and Likely fix to the clipboard for the user to check and paste. T3 posts nothing.

Before (#16685): the explanation, with no issue lookup.

Before: the banner shows What happened and Likely fix, with no known-issue or report link

After (this PR): Explain, then Report this issue, which copies the details and opens the form. Real-time recording, cropped to the banner.

After: Explain answers, the banner offers Report this issue, and after the click it says the error details were copied

After: the banner after clicking Report this issue, with the copied-details note

How it works:

  • The search sends no text from the error. GitHub search is public, so the server recognises the failure against a fixed list of 33 categories (whole-phrase patterns such as "failed to read attachment" or "connection refused") and searches with those categories' fixed terms, at most three, plus a fixed provider keyword, e.g. attachment read turn start claude repo:pingdotgg/t3code is:issue. Only which categories matched leaves the machine. No match means no search.
  • The model picks, the server checks. The top five candidates (number, title, state) go into the explanation prompt as an untrusted section; the model names one only if it clearly describes the same failure, and the server accepts the number only if it was a candidate. Links are built from the number, never taken from GitHub's response.
  • The report link carries no error text. The URL holds only a title of the same category terms ("[Bug]: Provider failure: attachment read, turn start"), a fixed instruction in the "Actual behavior" field, the provider keyword, runtime mode, OS and T3 version. The error, the explanation and the model name stay out of the URL, since GitHub receives a URL before the user reviews it. Clicking the link copies those details to the clipboard best effort, and the banner confirms only when the copy worked.
  • Best effort, never blocking. The search has a 3 s timeout. Failures (network, 403/429, bad response) yield no candidates and the explanation still arrives. After a rate limit, searches pause until GitHub's reset time, measured from when the response arrived. Identical concurrent searches share one request, and results are cached per query for 10 minutes.

Surfaces: web and desktop (desktop opens the link through its existing external-window handler). Mobile has no Explain action. The user guide's activity log page says exactly what the search and the link contain.

Scope and approval

A follow-up to #16685, which is itself a new feature without maintainer approval yet; the same applies here, and I'll follow maintainer direction on both. Kept separate so #16685 stays reviewable on its own.

Historical verification

The following results and captures retain their original revisions; they were not repeated for the current comment-only lint repair.

  • vp test run on KnownIssueSearch.test.ts, ProviderFailureReportLink.test.ts, ProviderFailureExplanationService.test.ts, apps/server/src/textGeneration and apps/web/src/components/chat: all pass. They cover private names made of category words (Failed to read repo billing-migration: permission denied, Connection refused by auth.billing.internal) sending only fixed terms, a property test that every query word is a fixed term or provider keyword, 28 real failure strings mapping to their categories, out-of-list issue numbers ignored, a failed or rate-limited search still returning the explanation, backoff measured from response receipt, 20 concurrent identical searches making one request, emoji at every truncation point, and the report URL carrying none of the error text, explanation or model name.
  • tsc --noEmit: 0 errors in apps/server, apps/web, packages/contracts, packages/client-runtime. Lint and format clean, no suppressions.
  • Live client (web, headless Chrome, isolated dev server on 8c9fbc8fb5f with fix(server): provider failures say why a turn could not start #16303's ProviderFailure.ts laid over it so the failure names its reason): a real Claude attachment failure. The live search ran and the model matched no issue, so the report path is shown; clicking it opened a new tab with the pre-filled form and the clipboard held the three fields. The known-issue link state is covered by tests, not seen live, because no open upstream issue matches this failure.
  • Independent review by GPT-6 Astra (high): two full rounds plus a targeted re-review of the last commit. Round 1 found that words filtered from the error could still leak secrets or private names into the public search (blocker), error text in the report URL, and an emoji truncation crash. Round 2 found that vocabulary words could still spell private names (blocker), backoff measured from the request instead of the response, and uncoalesced concurrent searches. A targeted re-review of the category rewrite confirmed the privacy and timing fixes closed and found one race: an interrupt between registering a shared search and installing its cleanup could strand later identical searches. The last commit holds interruption off across that step and adds a guard test; it was not reviewed again. The same re-review caught a docs line still listing the model name in the link, also fixed.
  • Not checked: the GitHub form's rendering of the pre-filled fields (it needs a signed-in browser), and a text generation model other than Codex.

Built with Claude Sonnet 5.5 and Claude Opus 5.5 in Claude Code; cross-vendor review by GPT-6 Astra in T3 Code.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

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

All reactions
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XXL 1,000+ changed lines (additions + deletions). labels Oct 7, 2026
github-actions Bot and others added 2 commits October 12, 2026 10:58
@github-actions @claude
feat(clients): explain a provider error with the text generation model
f473232
The error banner tells the user a turn failed, but working out why means
reading logs. An Explain action on the banner now asks the configured text
generation model what probably went wrong and what to try. The server builds
the context itself from the thread and runs the operation in an empty
temporary directory with tools off where the provider allows it.

Squashed from four commits so it rebases onto main's provider packages as
one change.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@github-actions @claude
fix(web): offer Explain again after an interrupted explanation request
f194c1c
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@saphid
saphid force-pushed the feat/explain-known-issues branch 2 times, most recently from c73ff79 to 101b1ef Compare October 12, 2026 00:03
github-actions Bot and others added 9 commits October 12, 2026 11:23
@github-actions @claude
fix(web): only offer Explain to connections that can operate the thread
8de38aa
The explain request needs the operate scope, so a read-only connection saw
an Explain action the server always rejected. The banner now gets an explain
target only when the connection can operate the thread.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions @claude
test(providers): cover failure explanations in Muse and OpenCode 2
8b37f1b
Checks that each runs in an empty temporary directory that is removed
afterwards, refuses tool requests, decodes and bounds the structured answer,
rejects incomplete answers, and releases its host or session.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions @claude
fix(server): keep provider output out of explanation failure logs
8344c43
A refused explanation logged its raw cause, whose detail can carry provider
CLI output. The warning now carries only the reason and the cause's tag and
operation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions @claude
feat(clients): link a known issue or a pre-filled report from Explain
7802b75
When Explain runs, the server also searches the upstream issues with a few
words from the failure (ids, paths and URLs stripped) and lets the text
model say which candidate, if any, describes the same failure. The banner
links that issue, or offers a GitHub bug form pre-filled with the failure,
explanation, provider, model and version for the user to review and submit.
T3 posts nothing, and a failed search never blocks the explanation.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@github-actions @claude
fix(server): search known issues from a fixed vocabulary; keep error …
4dcaa86
…text out of report links

GitHub search is public, so the query is now built only from a fixed list of
diagnostic words and a canonical driver name, never from the error's own
text. The report link carries only those words, the provider, runtime mode,
OS and version; the error and explanation are copied to the clipboard for
the user to check and paste. Cut text on code points, never fail Explain
over the link, and back off after GitHub rate limits.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@github-actions @claude
fix(server): search known issues by failure category; share and pace …
7640073
…searches

Words picked out of the error could still spell a private name, so the
query is now the fixed terms of recognised failure categories plus the
driver keyword. Identical concurrent searches share one request, and rate
limit waits start when the response arrives.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@github-actions @claude
fix(server): never strand a shared known-issue search on interrupt
fef2c21
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@github-actions @claude
chore(server): keep known-issue helpers module-private
295370a
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@github-actions @claude
test(providers): expect no matched issue from Muse and OpenCode 2 exp…
90c79eb
…lanations

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@saphid
saphid force-pushed the feat/explain-known-issues branch from 101b1ef to 90c79eb Compare October 12, 2026 00:26
saphid and others added 6 commits October 17, 2026 22:16
@saphid
merge: resolve provider failure explanation conflicts
4e9ccab
@saphid
Merge remote-tracking branch 'upstream/main' into resolve-16685
7ecb5bd
@saphid
merge: resolve pingdotgg#16702 conflicts with main
0ff6a0d
@github-actions
chore(provider-core): remove redundant prompt section divider
153f581
@saphid
chore: resolve pingdotgg#16702 conflicts with current main
8243574
@saphid
merge: preserve PR 16702 behavior on current main
eb7df86
@saphid

saphid commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Integrated main d36b7da2485bc889b320a285deea181f637d760a in eb7df864bec310c0d20b5a5c093b98193103bd0f with a normal descendant push. Known-issue explanations keep project-less isolated working directories across provider runners while preserving current tracing, OpenCode cancellation, and stream semantics. Updated the WebSocket and Pi test layers for the added service dependencies and the known-issue fetch span for current lint rules. All 280 focused provider/service/UI-logic tests pass; existing imported ACP/web type diagnostics remain.

Focused tests: 280 passed (280); exit 0. Targeted lint exit 0. Focused typecheck exit 1. Diagnostics: apps/web/src/lib/openPullRequestLink.ts(187,20): error TS7006: Parameter 'previous' implicitly has an 'any' type.; packages/provider-acp/src/server/AcpSessionRuntime.ts(1334,29): error TS2339: Property 'signal' does not exist on type 'AcpProcessExitedError'.; packages/provider-acp/src/server/AcpSessionRuntime.ts(1334,68): error TS2339: Property 'signal' does not exist on type 'AcpProcessExitedError'.; packages/provider-acp/src/server/adapter.ts(3302,49): error TS2339: Property 'error' does not exist on type '{ readonly sessionUpdate: "state_update"; readonly state: "idle"; readonly stopReason?: string | null; readonly usage?: Usage | null; readonly _meta?: Meta; }'.; packages/provider-acp/src/server/adapter.ts(4449,32): error TS2339: Property 'error' does not exist on type '{ readonly sessionUpdate: "state_update"; readonly state: "idle"; readonly stopReason?: string | null; readonly usage?: Usage | null; readonly _meta?: Meta; }'.; packages/provider-acp/src/server/adapter.ts(4450,40): error TS2339: Property 'error' does not exist on type '{ readonly sessionUpdate: "state_update"; readonly state: "idle"; readonly stopReason?: string | null; readonly usage?: Usage | null; readonly _meta?: Meta; }'. No browser/device verification was run.

This remains a draft. Fresh current-head CI/review and all existing product, maintainer, and native-evidence gates remain. Upstream permission is READ; the parent owns watches and merges.

All reactions

Sorry, something went wrong.

Uh oh!

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

@saphid
style: apply repository formatting to focused PR changes
6819616
@saphid

saphid commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Fixed the verified follow-up review findings in 681961633c3c5b452e8842e233b8db1b572fd08e with a guarded normal descendant push. Read the actual failed CI Lint job 39414123183/118598858019; it reported formatting only in apps/server/src/orchestration-v2/KnownIssueSearch.ts. Applied the repository formatter to that file and verified focused format/lint checks. This follow-up changes formatting only, so the previously recorded behavior tests remain applicable; no repo-wide checks or installs were run. Existing draft/product/evidence gates remain.

Focused tests: 280 passed (280); exit 0. Targeted lint exit 0. Scoped typecheck exit 1. Diagnostics: apps/web/src/lib/openPullRequestLink.ts(187,20): error TS7006: Parameter 'previous' implicitly has an 'any' type.; packages/provider-acp/src/server/AcpSessionRuntime.ts(1334,29): error TS2339: Property 'signal' does not exist on type 'AcpProcessExitedError'.; packages/provider-acp/src/server/AcpSessionRuntime.ts(1334,68): error TS2339: Property 'signal' does not exist on type 'AcpProcessExitedError'.; packages/provider-acp/src/server/adapter.ts(3302,49): error TS2339: Property 'error' does not exist on type '{ readonly sessionUpdate: "state_update"; readonly state: "idle"; readonly stopReason?: string | null; readonly usage?: Usage | null; readonly _meta?: Meta; }'.; packages/provider-acp/src/server/adapter.ts(4449,32): error TS2339: Property 'error' does not exist on type '{ readonly sessionUpdate: "state_update"; readonly state: "idle"; readonly stopReason?: string | null; readonly usage?: Usage | null; readonly _meta?: Meta; }'.; packages/provider-acp/src/server/adapter.ts(4450,40): error TS2339: Property 'error' does not exist on type '{ readonly sessionUpdate: "state_update"; readonly state: "idle"; readonly stopReason?: string | null; readonly usage?: Usage | null; readonly _meta?: Meta; }'.

No browser/device verification was run. Current main was fetched before editing; this retains the prior integration and does not chase subsequent main changes. Fresh current-head CI/review and existing product/native evidence gates remain. Upstream permission is READ; the parent owns watches and merges.

All reactions

Sorry, something went wrong.

Uh oh!

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

@only21mil only21mil mentioned this pull request Oct 22, 2026
fix(pi): show the provider error when Pi text generation fails #23741
Merged
@saphid
fix: integrate current main while preserving PR 16702 behavior
540cb5e
@maria-rcks

maria-rcks commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

Note

Written by gpt-6.1-sol on behalf of Maria

this needs prior approval under establish the problem and scope first. the complete contribution targeting main adds the Explain action, model-backed explanations, public known-issue lookup and pre-filled report links. its scope section explicitly says approval is missing for both Explain and this follow-up. draft status does not defer this requirement. the difficulty finding known failures and reporting new ones remains useful feedback. obtain explicit maintainer approval of the direction and complete scope in an Ideas discussion, link that approval, and request reconsideration with evidence for the accepted behavior.

All reactions

Sorry, something went wrong.

Uh oh!

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

@maria-rcks maria-rcks closed this Oct 31, 2026
@maria-rcks maria-rcks reopened this Oct 31, 2026
@maria-rcks

maria-rcks commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

Note

Written by claude-opus-5-5 on behalf of Maria

Reopening. An automated triage pass closed this by mistake; the closing comment above does not apply. Sorry for the noise.

All reactions

Sorry, something went wrong.

Uh oh!

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

@saphid saphid mentioned this pull request Nov 12, 2026
feat(clients): explain a provider error with the text generation model #16685
Closed
@t3dotgg

t3dotgg commented Nov 12, 2026

Copy link
Copy Markdown
Member

Note

🤖 Claude Opus 5.5 responding on behalf of Theo

Closing. This PR conflicts with main in 21 files, which is more than we will review as a rebase. If the change still matters, open a fresh PR from current main.

All reactions

Sorry, something went wrong.

Uh oh!

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

@t3dotgg t3dotgg closed this Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

size:XXL 1,000+ 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.

3 participants

@saphid @maria-rcks @t3dotgg
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.