Repository navigation
fix(server): attachments are no longer silently dropped from prompts - #21356
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a localized server bug fix that preserves attachment paths or explicitly reports unavailable attachments, while keeping optional captured-window context within its budget. Pi now uses the shared formatter, with focused tests covering the boundary and unresolved-attachment cases. No code changes detected at You can add or adjust custom eligibility rules. Learn more. |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Dismissing prior approval to re-evaluate 859796e
Take upstream's attachment prompt handling (pingdotgg#21356) in place of the fork's AttachmentPromptError and prepareProviderMessageText. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ingdotgg#21356) (cherry picked from commit 550f119)
## What's Changed * fix(server): attachments are no longer silently dropped from prompts by @maria-rcks in pingdotgg/t3code#21356 * fix(mobile): images picked with choose files reach the agent as images by @maria-rcks in pingdotgg/t3code#21352 * feat(web): attach svg files to messages by @maria-rcks in pingdotgg/t3code#21355 * feat(server): send pdf attachments to claude and antigravity as documents by @maria-rcks in pingdotgg/t3code#21358 * feat(mobile): play audio inline and open shared files in the viewer by @maria-rcks in pingdotgg/t3code#21353 * feat(web): play audio inline and open any file the agent shares in the viewer by @maria-rcks in pingdotgg/t3code#21363 * perf(pull-requests): faster pull request timeline, code tab, summary and search by @maria-rcks in pingdotgg/t3code#22697 * perf(mobile): bound streaming markdown cache and pending work by @juliusmarminge in pingdotgg/t3code#24263 * fix(web): question options show a radio and an aligned shortcut key by @maria-rcks in pingdotgg/t3code#23255 * fix(server): notify parents after delegated background runs by @juliusmarminge in pingdotgg/t3code#23542 * fix(server): running delegates tell agents to end the turn by @t3dotgg in pingdotgg/t3code#24887 * perf(ci): cache server tests individually across shards by @juliusmarminge in pingdotgg/t3code#24966 * feat(mobile): one cached native-client install command for agents and machines by @juliusmarminge in pingdotgg/t3code#24965 * perf(source-control): pull request previews read only the pull request by @maria-rcks in pingdotgg/t3code#22583 * feat(infra): native client cache panels on the task cache dashboard by @juliusmarminge in pingdotgg/t3code#24994 * feat(web): UI design overhaul, with the new look behind a Beta toggle by @t3dotgg in pingdotgg/t3code#24865 * test(server): tests no longer depend on the host machine by @t3dotgg in pingdotgg/t3code#25001 * perf: opening a thread loads 85% less data by @t3dotgg in pingdotgg/t3code#24899 * fix(server): orchestrator records command count and duration again by @yordis in pingdotgg/t3code#23966 * fix(observability): every app reports its own environment and release channel by @yordis in pingdotgg/t3code#24340 * chore(lint): React effects can't grow past each file's budget by @juliusmarminge in pingdotgg/t3code#24964 * fix(observability): every exported resource names its service instance by @yordis in pingdotgg/t3code#23973 * fix(install): stable installs no longer fail behind a page of nightlies by @t3dotgg in pingdotgg/t3code#22907 * fix(server): Grok refresh no longer restores removed models from cache by @t3dotgg in pingdotgg/t3code#22849 * fix(server): resume fallback keeps the latest turn when an older handoff is pending by @t3dotgg in pingdotgg/t3code#22902 * fix(client-runtime): "Codex (hub)" badges read CH instead of C( by @t3dotgg in pingdotgg/t3code#22918 * fix(mobile): retain requested PR environment while connecting by @juliusmarminge in pingdotgg/t3code#24262 * fix(web): usage-limit banner reset time follows the Time format setting by @t3dotgg in pingdotgg/t3code#22915 * fix(web): terminal drag selection scrolls faster the farther past the edge by @t3dotgg in pingdotgg/t3code#22872 * fix(observability): resources add OTel semconv runtime and browser keys by @yordis in pingdotgg/t3code#23972 * chore(lint): main passes lint again with effects merged after the budget by @t3dotgg in pingdotgg/t3code#25055 * fix(server): ended roots no longer leave provider turns running by @t3dotgg in pingdotgg/t3code#22846 * feat(mobile): open threads and devices in a resizable iOS inspector by @juliusmarminge in pingdotgg/t3code#24985 * chore(web): measure renders before/after with render scenarios by @juliusmarminge in pingdotgg/t3code#24980 * fix(web): asset URLs re-mint per revision and before expiry without effects by @juliusmarminge in pingdotgg/t3code#24970 * fix(web): queued-message edits survive navigation and settle once by @juliusmarminge in pingdotgg/t3code#24972 * refactor(mobile): thread visits are tracked outside React by @juliusmarminge in pingdotgg/t3code#24973 * refactor(client): cloud account transitions run in one service by @juliusmarminge in pingdotgg/t3code#24974 * refactor(client): one VCS status refresh owner per checkout by @juliusmarminge in pingdotgg/t3code#24975 * refactor(web): document appearance and title are applied from app start by @juliusmarminge in pingdotgg/t3code#25004 * refactor(web): app shell shortcuts register once through one command dispatcher by @juliusmarminge in pingdotgg/t3code#25016 * refactor(web): shared intersection and document-activity stores by @juliusmarminge in pingdotgg/t3code#25020 * refactor(web): the theme store and diff worker pool stop syncing the theme through effects by @juliusmarminge in pingdotgg/t3code#25007 * fix(server): keep history discovery off the writer and pace compaction by @JustYannicc in pingdotgg/t3code#20877 * perf(mobile): compact persisted thread snapshots by @juliusmarminge in pingdotgg/t3code#24265 **Full Changelog**: pingdotgg/t3code@v0.1.3-nightly.20261025.3682...v0.1.3-nightly.20261025.3692 Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.3-nightly.20261025.3692
attachment paths disappeared when generated context exceeded 120,000 characters, and pi silently skipped unresolved attachments. every attachment now has a path or an explicit unavailable entry. optional captured-window context keeps its budget and reports truncation; pi uses the shared formatter.
git history traces the guard to the orchestrator introduction (de34391), alongside the captured-window budget test, with no provider-specific hard limit documented. codex, claude, cursor, acp/grok, muse, and both opencode adapters already use the shared formatter and inherit the fix.
blacksmith passed 104 focused tests, both package typechecks, and scoped lint with zero errors and one existing warning. real web/codex turns with matching 119,984-character messages and four pasted files returned 0/4 paths before and 4/4 after. real pi turns with forward-compatible attachment metadata that resolves to null changed from "no attachments received" to naming the unavailable file. other providers were source-audited, not exercised live.
Built by gpt-6.1-sol in Codex, orchestrated from T3 Code.