GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — chore(upstream): land question attachments with the combined cleanup by rynfar · Pull Request #477 · pylon-code/pylon Conversation
|
| PR | Head merged here | Lane |
|---|---|---|
| #463 | 4ae01235bb70b73f1f4c09da7d5bc4ae2ac5d3a0 |
Attach files to question answers (upstream #9871, 7220dfe2c9) |
Tracking issue #414, frozen upstream head 6c583620ff7ad3235b135af7107c0543467eecfa.
ProjectionPipeline.ts takes feat(chat): attach files to question answers #463's rewritten cleanup (see below).MessagesTimeline.test.tsx keeps both new tests: fix(web): port upstream chat view, composer and timeline fixes #457's minimap controls and feat(chat): attach files to question answers #463's question answer history.fix(server): remove deleted threads' browser artifacts in the faster cleanup
browser-artifacts/<thread>/, where transferred recordings and saved snapshots live.minLastAppliedSequence is removed; it would have counted the non-projector cleanup row.fix(server): keep attachment cleanup from skipping or repeating work
fix(mobile): ask to connect before blaming the server for a refused paste. A card rendered from cached data before the server config arrives now asks the user to connect. The "update this server" message is kept for servers that report no support.The review confirmed all six original #463 cleanup findings are fixed. Its bootstrap measurements:
| Case | Time | Statements | Directory listings |
|---|---|---|---|
| 1,000 deleted threads, no files, 3,000 unrelated files | 9 ms | 22 | 2 |
| 1,000 deleted threads with 3 files each (worst case) | 397 ms | 1,022 | — |
| Restart with a current cursor | 1 ms | — | 0 |
@t3tools/contracts, @t3tools/shared, @t3tools/client-runtime, t3, @t3tools/web, @t3tools/mobile, @t3tools/desktop.Merged by Claude Opus 5 in Claude Code.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Question answers accept pasted images and uploaded files on web, desktop and mobile. The server claims them like turn attachments, records an answer-submitted history activity, and appends the saved file paths to the provider answer strings. Attachment cleanup keeps its own projection cursor so reverts and deletes retain files that answers still reference. Pylon adaptations: the normalizer and failed-dispatch cleanup also keep covering thread.input-queue.follow-up; mobile readiness checks upload states directly because this branch predates the #10404 upload helper. Adopted from 7220dfe2c949476eaa7d21eccbcd3a0ce0eddb49 (#9871)
Bootstrap decoded every event past the cleanup cursor and listed the attachments directory once per deleted or reverted thread, and the live path never advanced the cursor. First start after upgrade replayed the whole log (1,000 deleted threads with 3,000 files took about 28 s), one old payload that no longer decodes stopped the engine from starting, and a persistent file error pinned the cursor. The live path now writes the cleanup cursor with the projector cursors at the last finished cleanup. Bootstrap selects only revert and delete rows past it without decoding payloads, lists the directory once, skips threads without files, and moves the cursor to the projector head. A database without the row starts at its lowest projector cursor. File errors are logged and retried once on the next start instead of pinning the cursor, and revert retention reads only answer activities. Remove the unused minLastAppliedSequence, which would have included the non-projector cleanup row.
…ed pastes A cached thread snapshot can predate a question, so discarding question attachment drafts from it deleted drafts and their local file copies after a cold start or while reconnecting. Only live thread data may discard them now, matching web. Pasting an image into an answer on a server without question attachment support was silently ignored. It now shows the same update reason web shows.
…achments' into upstream/2026-09-11-integration-3 # Conflicts: # .agents/upstream-review.md # apps/server/src/orchestration/Layers/ProjectionPipeline.ts # apps/web/src/components/chat/MessagesTimeline.test.tsx
…cleanup #462 made deleting a thread remove its browser-artifacts/<thread>/ folder, where transferred recordings and saved snapshots live. #463 rewrote attachment cleanup to skip threads with no attachment files, which would leave those folders behind whenever a deleted thread only had browser artifacts (the recording's upload is claimed out of the attachments directory). List the browser artifacts directory once per cleanup batch that deletes a thread, clean deleted threads that have either kind of file, and count a failed listing as incomplete so the next start retries. The backlog test now also covers an artifacts-only thread and expects one listing per cleanup directory.
There was an error while loading. Please reload this page.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Review of the integrated cleanup found three gaps: - A failed browser-artifacts listing at startup was counted as incomplete, but the backlog moves its cursor to the head regardless, so the deleted threads' folders were never retried. When the listing fails, remove each deleted thread's folder directly instead (a no-op when absent). - A projector without a cursor lowered where cleanup restarts, so adding any new projector would re-prune every historical revert against current references. Only the projectors that record cleanup (threads, messages, activities) lower the start now. - No test proved that a later successful cleanup cannot carry the live cursor past a failed one. Tests cover all three, and each fails with its fix reverted. The internals overview now describes the browser artifacts listing and the narrower restart rule.
…aste A question card can render from cached thread data before the environment's server config arrives, so a missing config does not mean the server lacks question attachments. Ask the user to connect first in that case, and keep the update prompt for servers that report no support.
There was an error while loading. Please reload this page.
297136ac
Deployed
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.