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): Reasoning that Pi starts again no longer repeats the abandoned attempt by mwolson · Pull Request #135 · mwolson/t3code

Conversation

@mwolson

@mwolson mwolson commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Problem

While a Pi agent's reasoning streams, T3 Code can show an abandoned attempt followed by its replacement, run together as one block. It happens when a Pi provider reconnects in the middle of a reasoning block and streams that block again from its start: Pi sends a second thinking_start for the same content index. Pi's own view follows the partial message, so it shows only the new attempt. T3 Code appends every delta for a content index to one item, so the abandoned text stays in front until the block ends and Pi's final content replaces it.

Change

A start event for a block that is still streaming now clears what T3 Code had collected for it, so the next update shows only the new attempt. Text blocks use the same start event and get the same rule. A block that has already finished is left as it is.

Scope

Bug fix: reasoning the provider discarded is shown as part of the live block. No upstream issue reports it yet.

Verification

Found by reading the adapter while reviewing a Pi xAI transport extension (@mwolson-org/pi-xai-ws) that reconnects once after a WebSocket drop in the middle of reasoning and streams the block again.

The adapter test "shows only the new reasoning when Pi starts a streaming block again" streams a reasoning block, starts it again at the same content index, and checks that the reasoning item holds only the second attempt. It fails with the production change reverted, where the item holds both attempts, and the adapter's 158 tests pass with it.

Not checked against a live Pi turn: reproducing it needs a socket drop in the middle of a reasoning block.

Sorry, something went wrong.

Uh oh!

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

All reactions
@mwolson
fix(pi): Reasoning that Pi starts again no longer repeats the abandon…
11de8d1
…ed attempt

A Pi provider can reconnect in the middle of a reasoning block and stream that
block again from its start, with a second thinking_start for the same content
index. Pi's own view follows the partial message, so it shows only the new
attempt. The adapter appended every delta for a content index to one item, so
while the block streamed the thread showed the abandoned reasoning followed by
its replacement. A start event for a block that is still streaming now clears
what the item had collected.
@mwolson
mwolson added this pull request to stack #136 November 16, 2026 20:47
@mwolson
mwolson removed this pull request from stack #136 November 16, 2026 23:02
@mwolson
mwolson added this pull request to stack #138 November 16, 2026 23:03
@mwolson
mwolson removed this pull request from stack #138 November 18, 2026 16:28
@mwolson
mwolson added this pull request to stack #142 November 18, 2026 16:28
@mwolson
mwolson removed this pull request from stack #142 November 19, 2026 19:30
@mwolson
mwolson added this pull request to stack #144 November 19, 2026 19:31
@mwolson
mwolson removed this pull request from stack #144 November 20, 2026 22:48
@mwolson

mwolson commented Nov 20, 2026

Copy link
Copy Markdown
Owner Author

Absorbed by upstream 4ecbe55 (pingdotgg#38334 pi-block-restart); dropped from the stack at the 2026-11-20 refresh.

All reactions

Sorry, something went wrong.

Uh oh!

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

@mwolson mwolson closed this Nov 20, 2026
@mwolson
mwolson deleted the contrib/pi-block-restart branch November 20, 2026 22:49
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

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

@mwolson
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.