Skip to content

feat(client): preview thread lifecycle actions until shell receipts - #819

Merged
rynfar merged 1 commit into
pylonfrom
feat/optimistic-thread-lifecycle-20260924
Sep 25, 2026
Merged

rynfar merged 1 commit into
pylonfrom
feat/optimistic-thread-lifecycle-20260924

Conversation

@rynfar

@rynfar rynfar commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

When settling, snoozing, pinning, or reordering a thread on a remote environment, the shell list currently waits for the command reply and projected event before showing the change. This makes the action feel inert during network delay and can let a late settle/snooze reply navigate away after the user reverses the action.

Preview the eight lifecycle actions in the shared client runtime for web and mobile. The persisted shell remains authoritative: a rejected or interrupted command rolls back, an accepted action stays visible only until its persisted receipt sequence reaches the live shell, and a disconnect clears the preview so a cached shell never presents it as confirmed. Sidebar navigation rechecks the selected thread and current lifecycle state after the reply.

Adapted from T3 source 9ea892e3b365faff31eed294ac38f70d122656b2 for Pylon's environment-scoped shell and command receipts. Provider turns, admissions, project data, and thread details are unchanged.

Validation: 196 focused client-runtime and sidebar logic tests; client-runtime, web, and mobile typechecks; scoped lint and formatting; independent read-only review. No live browser or mobile interaction was performed.

Model: GPT-6 Sol (low) via the Codex harness.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@vercel

vercel Bot commented Sep 24, 2026

Copy link
Copy Markdown

Deployment failed for project pylon-marketing with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/pylon-code?upgradeToPro=build-rate-limit

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L labels Sep 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 14.0 KiB 13.9 KiB −33 B (−0.2%) 15.1 KiB ✅
Codex Thread snapshot wire 7.2 KiB 7.2 KiB −5 B (−0.1%) 7.3 KiB ✅
Codex Live turn WebSocket wire 6.8 KiB 6.7 KiB −28 B (−0.4%) 7.8 KiB ✅
Codex Live turn WebSocket decoded 58.0 KiB 58.0 KiB −44 B (−0.1%) 66.4 KiB ✅
Codex Live turn messages 10 9 −1 (−10.0%) 21 ✅
Claude Total thread wire 14.0 KiB 14.0 KiB +13 B (+0.1%) 15.1 KiB ✅
Claude Thread snapshot wire 7.2 KiB 7.2 KiB −14 B (−0.2%) 7.3 KiB ✅
Claude Live turn WebSocket wire 6.7 KiB 6.8 KiB +27 B (+0.4%) 7.8 KiB ✅
Claude Live turn WebSocket decoded 58.9 KiB 58.9 KiB 0 B (0.0%) 66.4 KiB ✅
Claude Live turn messages 10 10 0 (0.0%) 21 ✅

Baseline: 7ed3f71 · PR result: 0e4ae37 · Source CI: success

Scenario and decoded snapshot size

10 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.

  • Codex decoded thread snapshot: 115.6 KiB
  • Claude decoded thread snapshot: 116.3 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@rynfar
rynfar merged commit 24da335 into pylon Sep 25, 2026
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant