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 — fix(pi): blank extension dialog titles no longer fail the turn by Kirat0201 · Pull Request #35271 · pingdotgg/t3code

Conversation

@Kirat0201

@Kirat0201 Kirat0201 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Problem

Pi extensions can send an empty or whitespace-only title for input, select, or editor dialogs. T3 copies it into the question text, which fails the nonblank question contract and can fail the running turn. A blank title with a valid input placeholder also produces an invalid header.

Fixes #35237.

Change

Use the existing Question label when the dialog title is blank. Preserve nonblank titles, placeholder text, options, editor prefill, and the original answer response.

Scope

A small adapter normalization fix for a valid Pi RPC string that violates T3's stricter contract. No public API, permissions, model instructions, or rendering code changes. #23650 addresses the shared invalid-event error boundary separately.

Verification

Darwin arm64, pinned Node 26.12.1, base 591188471a6d. Production Pi adapter with the repository's existing fake Pi RPC process and production question schema, using isolated development state. No model calls.

Before the fix, six cases fail with SchemaError: Expected a non-blank string at [0]["question"]: input, select, and editor with empty or whitespace-only titles. The three normal-title controls pass. After the fix, all 133 adapter tests pass. The extended cases also cover a blank title with a valid placeholder and verify answer round trips during an active turn.

Observed fixture round trip for each blank-title method:

Pi RPC: extension_ui_request, title="" or "   "
Adapter: user_input_request, header="Question", question="Question"
Production question decoder: accepted
Answer: SQLite
Pi RPC: extension_ui_response, value="SQLite", cancelled absent

With a valid placeholder, the question remains Your name; nonblank multiline titles remain intact. Existing empty-answer, select-option, editor-prefill, confirmation, cancellation, and timeout tests pass.

vp run check:changed --concurrency 2 passes formatting, lint, both dependency checks, typechecks for nine affected packages, and 135 tests across two files. Commit hooks pass (format, lint, and dependency checks). Latest upstream e9e934bb3d has no intervening changes to either Pi file.

Not exercised: a real Pi extension process or packaged clients. This verifies protocol normalization and response handling through the existing adapter fixture.

GPT-6 in Codex.

Sorry, something went wrong.

Uh oh!

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

sanjaibalajee reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@Kirat0201
fix(pi): normalize blank extension dialog titles
9c530ed
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 12, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 12, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 9c530ed

Macroscope's review found this PR approvable — Blank extension dialog titles now use “Question” instead of propagating empty text. The change is limited to question presentation and leaves options, responses, and approval handling unchanged.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

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

@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Pi adapter now uses a trimmed title or "Question" when deriving dialog headers and questions. Input-dialog tests cover nonblank and whitespace-only titles, question text, and returned answers.

Changes: Pi dialog title handling

Layer / File(s) Summary
Normalize dialog titles and verify responses
packages/provider-pi/src/server/adapter.ts, packages/provider-pi/src/server/adapter.test.ts
piQuestion uses the trimmed title or "Question" as a fallback. Input-dialog tests cover nonblank and whitespace-only titles, question text, and returned answers.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: only21mil, juliusmarminge

Merge Risk: Minimal · up to 539ce

Pi extension dialogs with empty or whitespace-only titles now show a default "Question" label instead of failing the run. Nonblank-title behavior is unchanged, and no merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(pi): blank extension dialog titles no longer fail the turn" matches the main change. The adapter now uses the existing "Question" label when an input, select, or editor dialog title is …
Description check Passed The description follows the repository template. It has Problem, Change, Scope, and Verification sections. The Problem section states the bug and links issue #35237. The Change section explains the fi…
Linked Issues check Passed [#35237] The whole-PR diff (merge base to head) changes only piQuestion in packages/provider-pi/src/server/adapter.ts. It adds const questionTitle = title.trim() ? title : "Question". Blank or w…
Out of Scope Changes check Passed The production change is a three-line normalization inside piQuestion. It directly implements the issue requirement for blank titles in input, select, and editor dialogs. The test changes in `packag…
Full details: Title check

Explanation

The title "fix(pi): blank extension dialog titles no longer fail the turn" matches the main change. The adapter now uses the existing "Question" label when an input, select, or editor dialog title is empty or whitespace-only, so the turn no longer fails. The title is specific, follows conventional commit style, and names the affected component (pi) and the behavior.

Full details: Description check

Explanation

The description follows the repository template. It has Problem, Change, Scope, and Verification sections. The Problem section states the bug and links issue #35237. The Change section explains the fix, and the Scope section explains why no public API or rendering changes are involved. The Verification section lists focused tests, observed results, and items not checked (a real Pi extension process and packaged clients). The description does not include the template's reference to CONTRIBUTING.md, but that comment is guidance for authors, not a required section. The description ends with the model and harness used ("GPT-6 in Codex"), which the template asks for.

Full details: Linked Issues check

Explanation

[#35237] The whole-PR diff (merge base to head) changes only piQuestion in packages/provider-pi/src/server/adapter.ts. It adds const questionTitle = title.trim() ? title : "Question". Blank or whitespace-only titles now resolve to "Question". The header uses questionTitle when a detail exists, and question uses detail ?? questionTitle. A blank title therefore never yields a blank header or question. The change passes nonblank titles through unchanged, without trimming, so multiline and padded titles keep their original text. The confirm path and answer response handling are not touched. The AI-generated raw summary states that the title is trimmed. The code at head does not trim the stored value, so I relied on the code. I did not run the adapter tests. The reported fixture results are author evidence that I did not reproduce, so run-continuation behavior rests on that evidence.

Full details: Out of Scope Changes check

Explanation

The production change is a three-line normalization inside piQuestion. It directly implements the issue requirement for blank titles in input, select, and editor dialogs. The test changes in packages/provider-pi/src/server/adapter.test.ts, as summarized, cover the blank and nonblank title cases with and without placeholders. These support the fix and are in scope. No public API, permission, model-instruction, or rendering changes appear in the reviewed diff. The shared error boundary covered by #23650 is not touched.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: fd8e386
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 11d3e8bf-6e1c-4ef7-8909-a3190f7500f2
Commits

Reviewing files that changed from the base of the PR and between 9c530ed and 539ce6a.

Files selected for processing: 1

  • packages/provider-pi/src/server/adapter.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

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

@sanjaibalajee

sanjaibalajee commented Nov 12, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Tested this diff on top of main at 476fc9be6.

  • adapter.test.ts: 133 pass. Against the unpatched adapter, the 8 new blank-title cases fail with Expected a non-blank string.
  • I ran the reproduction script from [Bug]: Pi extension input, select, or editor dialogs with a blank title fail the run with "Provider turn failed." #35237 with its blank-title assertions flipped to the expected result. It drives the production Pi adapter, ProviderEventIngestorV2 and RunExecutionService against the fake Pi RPC process. All 12 cases pass. Input, select and editor dialogs titled "" and " " now produce a question that decodes, the answer SQLite reaches Pi as an extension_ui_response, and the run ends waiting with no interrupt, clear_queue or abort. On main the same six cases fail the run as described in the issue. The Which database? controls and the three confirm dialogs behave the same as on main.
  • provider-pi typecheck passes.
All reactions

Sorry, something went wrong.

Uh oh!

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

juliusmarminge and others added 2 commits November 12, 2026 16:38
@juliusmarminge
Merge remote-tracking branch 'origin/main' into codex/t3code-pi-blank…
f2b2e00
…-dialog
@juliusmarminge @claude
test(pi): cover blank dialog titles with one case per path
539ce6a
AI-assisted; verified with the tests and tools listed above.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge

juliusmarminge commented Nov 12, 2026

Copy link
Copy Markdown
Member

Evidence

Environment on both sides: real web app, Chromium, 1280×800 CSS viewport, light theme, fresh isolated database, real Pi process and the same synthetic extension.

Invoke input, select, and editor with nonblank, empty, and whitespace-only titles; submit Ada, SQLite, and edited seed respectively. Also invoke input with an empty title and placeholder Your name. All three controls pass on both commits. All seven blank-title cases fail on base and succeed on head, with the extension reporting the submitted answers.

Before After
fd8e386f 539ce6a9
Before: blank input title fails the turn After: extension receives Ada
Recording: all ten cases on base Recording: all ten cases on head

Focused head dialog recording · Pi extension · Seed script

AI-assisted; verified with the tests and tools listed above.

Not shown:

  • Desktop and mobile clients were not exercised; the evidence covers the web client and real Pi adapter.
All reactions

Sorry, something went wrong.

Uh oh!

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

@juliusmarminge
juliusmarminge merged commit f03db4f into pingdotgg:main Nov 12, 2026
31 checks passed

Uh oh!

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

Pipyakas pushed a commit to Pipyakas/t3code that referenced this pull request Nov 12, 2026
@Kirat0201 @juliusmarminge @Pipyakas
fix(pi): blank extension dialog titles no longer fail the turn (pingd…
7c13b02
…otgg#35271)

Co-authored-by: Julius Marminge <[email protected]>
(cherry picked from commit f03db4f)
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:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Pi extension input, select, or editor dialogs with a blank title fail the run with "Provider turn failed."

Uh oh!

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

3 participants

@Kirat0201 @sanjaibalajee @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.