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(server): a compaction cut by a restart runs again and sends what was queued behind it by Derpedyea · Pull Request #30207 · pingdotgg/t3code

Conversation

@Derpedyea

@Derpedyea Derpedyea commented Nov 3, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Fixes #30206

Problem

When the server restarts during a /compact, recovery cancels the compaction and holds the queue behind it. The continuation it records then returns early for maintenance commands, so the compaction never runs again and the queued message never starts. Compact on return hits this every time, because a send into a cold thread is /compact followed by the user's message.

Change

  • A cut /compact is re-sent as its restart continuation, with no "continue" prompt or notification. It keeps the source's idleCompaction and author, so a person's /compact is not shown as an automatic one. A cut /logout is still skipped.
  • Recovery records restartHeldRunIds on the run it cuts, listing only the queued runs it newly held. When the resumed compaction completes, releaseUnattendedHolds releases those runs, following the continuation chain through retries and repeated restarts. They were waiting on the compaction, not on a person. Holds that existed before the restart, such as after a Stop or a failure, stay held.

Re-running a compaction only summarizes the provider session again, so it cannot repeat a side effect the way continuing an ordinary turn could.

Scope and approval

This is a small, focused fix for #30206. The continuation and hold machinery already exists; this change covers the one source it skipped.

Verification

  • Focused tests in RestartContinuation, runtimeLayer and ProviderRuntimeRecoveryService. Each fails without its change: a cut /compact is not re-sent, the user's held message never starts (on main), or a hold that predates the restart is released along with it, and restartHeldRunIds is not recorded.
  • vp run check:changed: all checks pass.
  • Real dev server with Claude Haiku: sent /compact plus a queued follow-up, SIGTERM during the running compaction, then a restart.
    • On main, 45 s after the restart the follow-up was still queued with queueHeld: 1.
    • On this branch, the /compact continuation started on boot and completed, and the follow-up then completed.
    • That run predates the restartHeldRunIds scoping, which the tests cover.

Known gaps

  • A message queued while the resumed compaction runs, such as a question answer sent by the server, takes on the hold and stays held, as on main.
  • Holds created by a server version without this change carry no record, so a compaction cut during the update to this version leaves its follow-up held, as on main.

Built with Claude Opus 5.5 in Claude Code (T3 Code).

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

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

josephv123 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Nicholas Wasmiller @claude
fix(server): a compaction cut by a restart runs again and sends what …
1bedc7b
…was queued behind it

Restart recovery held the queue behind a cut /compact and recorded a
continuation, but the continuation handler skipped maintenance commands,
so nothing ever started. A cut /compact now runs again as its
continuation, and when it completes it releases the queue it held.

Fixes pingdotgg#30206

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T06:14:47.387779Z 36127e9 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 3, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 3, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 1bedc7b

Macroscope's review found this PR approvable — Interrupted compactions now retry after restart and release queued work when they finish. Existing continuation preferences, Stop handling, and recovery guards remain in place, limiting the change to recovery of already-requested work.

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.

@juliusmarminge juliusmarminge added bugfix Fix PR opened by an issue lead; enters the PR loop pr:gate-failed A land gate failed labels Nov 3, 2026
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 3, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1bedc7b89a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/orchestration-v2/Orchestrator.ts Resolved

Uh oh!

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

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

  • Last reviewed commit: ef424dc
  • Latest commit, not reviewed: 36127e9

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review
Walkthrough

Restart recovery records queued runs held by interrupted runs and resumes eligible /compact commands. When a continuation compaction completes, the orchestrator releases qualifying held runs.

Changes: Compaction recovery

Layer / File(s) Summary
Record restart-held runs
packages/contracts/src/orchestrationV2.ts, apps/server/src/orchestration-v2/ProviderRuntimeRecoveryService.ts, apps/server/src/orchestration-v2/ProviderRuntimeRecoveryService.test.ts
The run contract adds optional restartHeldRunIds. Recovery records newly held queued run IDs in the cancelled-run event. Tests verify the recorded IDs and queued-run state.
Resume cut compaction commands
apps/server/src/orchestration-v2/RestartContinuation.ts, apps/server/src/orchestration-v2/RestartContinuation.test.ts
Eligible cut /compact commands dispatch a continuation using source-message values. /logout remains excluded.
Release held runs after compaction
apps/server/src/orchestration-v2/Orchestrator.ts, apps/server/src/orchestration-v2/runtimeLayer.test.ts, docs/internals/server-updates.md
When a continuation compaction completes, the orchestrator releases runs recorded in the continuation chain or runs with unattended messages. The regression test checks that other queued runs remain held.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Severity of issue fixed: Medium

Sequence Diagram(s)

sequenceDiagram
  participant RecoveryService
  participant RestartContinuation
  participant Orchestrator
  participant QueuedRuns
  RecoveryService->>RestartContinuation: Record restartHeldRunIds
  RestartContinuation->>Orchestrator: Dispatch compaction continuation
  Orchestrator->>QueuedRuns: Release qualifying held runs
Loading

Possibly related PRs

  • pingdotgg/t3code#26430: Both PRs change continuation decisions for interrupted compaction runs, including which text is dispatched.
  • pingdotgg/t3code#27221: This PR modifies the releaseUnattendedHolds behavior introduced by that PR.

Suggested reviewers: juliusmarminge, maria-rcks

Merge Risk: Low · previous review ef424

A queued message can start after a provider failure despite being held for review. The change is otherwise mergeable with this issue tracked.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: a compaction cut by a restart is re-run and the messages queued behind it are sent. This matches the raw summary, which covers re-sending the cut /compact via its cont…
Linked Issues check Passed Issue #30206 requires recovery to rerun a cut /compact and then send the queued follow-up. RestartContinuation.ts now re-sends /compact without a continuation prompt or notification and preserve…
Out of Scope Changes check Passed The changed production files, contract field, focused tests, and server-update documentation all support issue #30206. The changes implement compaction replay and scoped release of runs held by restar…
Description check Passed The description follows the repository template's main sections: Problem, Change, Scope and approval, Verification. It names the issue (Fixes #30206) and gives a clear problem statement, the specific …
Full details: Title check

Explanation

The title names the main change: a compaction cut by a restart is re-run and the messages queued behind it are sent. This matches the raw summary, which covers re-sending the cut /compact via its continuation and releasing the holds added during restart. The title uses the conventional commit form and is specific.

Full details: Linked Issues check

Explanation

Issue #30206 requires recovery to rerun a cut /compact and then send the queued follow-up. RestartContinuation.ts now re-sends /compact without a continuation prompt or notification and preserves idleCompaction and createdBy. ProviderRuntimeRecoveryService.ts records the newly held run IDs. Orchestrator.ts releases those runs after the resumed compaction completes while preserving older holds. The focused tests cover compaction replay, hold scoping, and continuation handling. A cut /logout remains skipped.

Full details: Out of Scope Changes check

Explanation

The changed production files, contract field, focused tests, and server-update documentation all support issue #30206. The changes implement compaction replay and scoped release of runs held by restart recovery. No unrelated product behavior or unrelated file change is identified.

Full details: Description check

Explanation

The description follows the repository template's main sections: Problem, Change, Scope and approval, Verification. It names the issue (Fixes #30206) and gives a clear problem statement, the specific code changes, and a scope justification. Verification lists focused tests, a check run, and a real dev-server reproduction with before/after results. The known gaps are stated. The template's header comment asks for a conventional commit title; the PR title is not part of the provided description, so that cannot be verified here. The template also asks for the model and harness used; the description includes 'Built with Claude Opus 5.5 in Claude Code (T3 Code).' The description is substantive and mostly complete.

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: cefb544
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 819fbca4-2b60-4c1e-94d3-35554ca167d6
Commits

Reviewing files that changed from the base of the PR and between 792ef3e and ef424dc.

Files selected for processing: 2

  • apps/server/src/orchestration-v2/Orchestrator.ts
  • apps/server/src/orchestration-v2/runtimeLayer.test.ts

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

All reactions

Sorry, something went wrong.

Uh oh!

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

coderabbitai[bot]
coderabbitai Bot reviewed Nov 3, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Fix comments: Fix CodeRabbit comments on this PR

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/orchestration-v2/Orchestrator.ts Resolved

Uh oh!

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

Nicholas Wasmiller @claude
fix(server): a resumed compaction releases only the holds its restart…
0c517b2
… added

A user message held by an earlier Stop or failure can sit behind an idle
compaction. Releasing every hold when the resumed compaction finished
would send it without the user resuming it. Recovery now records on the
cut run which queued runs it held, and the resumed compaction releases
only those, across a chain of restarts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
coderabbitai[bot]
coderabbitai Bot reviewed Nov 3, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Fix comments: Fix CodeRabbit comments on this PR

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/orchestration-v2/Orchestrator.ts Resolved

Uh oh!

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

Comment thread apps/server/src/orchestration-v2/runtimeLayer.test.ts Resolved

Uh oh!

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

Nicholas Wasmiller and others added 2 commits November 3, 2026 09:42
Nicholas Wasmiller @claude
test(server): wait for the completion listener before asserting a hol…
eae4d6b
…d stays

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Nicholas Wasmiller @claude
refactor(server): trim the compaction restart fix
792ef3e
Release the holds recorded by the continuation's direct source only,
drop the projection-store preservation (the field is written in the
same event that cancels the run), and shorten the dispatch and tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
coderabbitai[bot]
coderabbitai Bot reviewed Nov 3, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Fix comments: Fix CodeRabbit comments on this PR

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/orchestration-v2/Orchestrator.ts Resolved

Uh oh!

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

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 3, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 792ef3ed53

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/orchestration-v2/Orchestrator.ts Resolved

Uh oh!

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

Nicholas Wasmiller @claude
fix(server): release restart holds across retried and re-cut compacti…
ef424dc
…on continuations

Co-Authored-By: Claude Opus 5.5 <[email protected]>
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 3, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ef424dc58c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/orchestration-v2/Orchestrator.ts Resolved

Uh oh!

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

coderabbitai[bot]
coderabbitai Bot reviewed Nov 3, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Fix comments: Fix CodeRabbit comments on this PR

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/orchestration-v2/Orchestrator.ts Resolved

Uh oh!

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

@maria-rcks

maria-rcks commented Nov 3, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Collaborator

Note

Written by gpt-6.1-sol on behalf of Maria

Verified in a real dev environment

verified unchanged head ef424dc58c2cd78549d723c7af5e57d6755a18ce on this linux boat vm, using repo playwright, /usr/bin/google-chrome, the real dev web client, and real codex gpt-6.1-sol turns through the local proxy. created a real git project and thread through the app/cli, with no mocks or seeded fixtures. ran one dev server at a time.

  • reproduced on github/main (cefb544af3c98224874419198c0359b652ca3c94): sent /compact in the web composer, queued a user follow-up, then stopped/restarted the captured dev process while compaction was active. compaction stayed cancelled and the follow-up stayed queued, queueHeld: true, with “send now” visible.
  • on this head, the same flow restarted /compact, completed it, released the user follow-up, and returned amber otter 30207 restart queue proof. the continuation kept createdBy: user and did not add an ordinary restart notification.
  • interrupted a resumed compaction with a second restart. the continuation chain completed and released the original follow-up, returning amber otter 30207 second restart proof.
  • normal compaction plus a queued follow-up completed without a restart and preserved the remembered phrase.
  • created a user queue hold with stop, started a separate compaction through the cli, interrupted it after its native codex turn started, and restarted. the resumed compaction completed while the earlier user message stayed held. explicit resume released the message.
  • blacksmith: 175 focused recovery/continuation/runtime tests passed. vp run check:changed github/main passed format, lint, both knip checks, graphql, affected typechecks (36 packages), and 205 tests across 8 files. fetched the comparison refs into the shallow worker first. existing pr checks were 28/28 successful.

short runtime transcript, from read-only inspection of the running app state and native provider events:

main 16:17:09 /compact running -> restart -> cancelled
main follow-up queued, queueHeld=true; no compaction continuation
head 16:20:02 original /compact cancelled; restartHeldRunIds=[follow-up]
head 16:20:35 resumed /compact started -> completed 16:20:50
head 16:21:00 follow-up completed; queueHeld=false
head second restart: source 6 -> continuation 8 (cancelled) -> 9 (completed)
head 16:23:43 second follow-up completed; queueHeld=false
head 16:33:30 separate resumed compaction completed; pre-existing stop hold still true

main: interrupted compaction leaves the user follow-up queued

pr: resumed compaction completes and the queued follow-up answers

pr: compaction and follow-up recover across two restarts, 2x playback with restart waits omitted

Not verified

native desktop, ios/android, other providers, remote/relay/tunnel connections, compact-on-return scheduling, and retries caused by provider startup failures were not exercised here. the documented older-version hold migration and answers queued during resumed compaction remain outside this verification. no code changes were needed.

Derpedyea reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

Nicholas Wasmiller @claude
Merge origin/main into fix/compaction-restart-resume
3a5bc90
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai coderabbitai Bot mentioned this pull request Nov 6, 2026
fix(server): prepare restart continuations faster on shutdown #31807
Merged
juliusmarminge added 2 commits November 11, 2026 03:18
@juliusmarminge
Merge remote-tracking branch 'origin/main' into fix/compaction-restar…
e8433dc
…t-resume
@juliusmarminge
refactor(server): pass idleCompaction only on a repeated compaction
c9ceca1
AI-assisted; verified with the tests and tools listed above.
@coderabbitai coderabbitai Bot mentioned this pull request Nov 11, 2026
fix(server): runs cancelled by a server restart say why in the thread #27192
Merged
@juliusmarminge

juliusmarminge commented Nov 11, 2026

Copy link
Copy Markdown
Member

The automated pipeline stopped on this pull request and will not merge it:

the proof has no capture anyone can open:

  • Permanent blocker: the requested reproduction requires native Claude compaction through first-party Claude sign-in, which the brief states is unavailable on these VMs.
  • Restarted compaction and automatic delivery of the queued follow-up remain unverified on both commits.
  • Independent Stop and failure holds, and preservation of beforeCacheExpires/onReturn source metadata, remain unverified.
  • The supplied head preserves agent authorship while setting creationSource to server; idleCompactionOf still interprets that combination without explicit idleCompaction as beforeCacheExpires. The previously rejected labeling path remains in the source, but was not observed in this run.
  • Web, desktop, and mobile runtime behavior and capture consistency remain unverified.

It stays open for a person to finish or close.

All reactions

Sorry, something went wrong.

Uh oh!

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

@josephv123

josephv123 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

I reported this first as #19233, and tested this branch with a first-party Claude sign-in, since that is what the pipeline was missing. Claude Code 2.1.322, Haiku 5.5, restart continuations on, Ubuntu, isolated data directories, real web client for the captures. Baseline is main at fc2b5de, the fix is this head c9ceca1.

/compact plus a queued follow-up, SIGTERM mid-compaction, restart on the same data directory

  • main: compaction cancelled, follow-up still queued with queueHeld: true 90 s later.

    main after restart: compaction stopped, follow-up held
  • this branch: the compaction ran again on boot (114K → 8.7K tokens), then the follow-up ran and answered with the right codeword, 18 s after the restart. The cut run records restartHeldRunIds: [follow-up].

    this branch after restart: compaction resumed, follow-up ran
  • Cutting the resumed compaction with a second restart also recovered.

Holds that predate the restart stay held

  • A message held by Stop, and one held by a failed turn (API 404): both were still queued, queueHeld: true 75 s after the resumed compaction completed, and ran after an explicit resume.
  • A /compact typed in the composer releases a held queue when it is sent (existing behaviour), so I used an agent-sent one (t3 thread send) to keep the hold in place.

Compact on return and idle compaction, real triggers

  • Compact on return: a 205K-token thread left idle for over an hour, "Compact and send" in the web composer, cut by a restart. The resumed run keeps idleCompaction: onReturn, shows "Context compacted before sending", and the message went out after it.

    compact on return, before the restart compact on return, after the restart
  • Before the cache expires: the server's own compaction on a 223K-token thread, cut by a restart. The resumed run keeps beforeCacheExpires and agent authorship.

    automatic compaction resumed after restart

One real problem: the labeling path named in the pipeline note

A /compact sent by an agent (createdBy: agent, creationSource: mcp, no idleCompaction) is resumed as createdBy: agent, creationSource: server, still with no idleCompaction. idleCompactionOf reads that as beforeCacheExpires, so the timeline says "Context automatically compacted before cache expiry" for a compaction nobody scheduled. A resumed /compact typed by a person is labeled correctly ("Context compacted", second capture above).

resumed agent-sent /compact labeled as before cache expiry

Not tested: desktop, mobile, other providers, relay or tunnel connections, a main baseline for the hold and idle cases, and the two gaps in the description. The script, per-case transcripts and all captures are in this gist.

All reactions

Sorry, something went wrong.

Uh oh!

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

Nicholas Wasmiller @claude
fix(server): a resumed agent-sent /compact no longer reads as an idle…
7b081e1
… compaction

Co-Authored-By: Claude Opus 5.5 <[email protected]>
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 13, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7b081e1d19

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/orchestration-v2/RestartContinuation.ts Resolved

Uh oh!

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

Nicholas Wasmiller and others added 2 commits November 12, 2026 23:00
Nicholas Wasmiller @claude
fix(server): a resumed legacy idle compaction keeps T3 Code authorship
1531602
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Nicholas Wasmiller @claude
Merge origin/main into fix/compaction-restart-resume
1bee2e2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.

See the conflict window.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 22, 2026
Nicholas Wasmiller @claude
Merge origin/main into fix/compaction-restart-resume
f28323d
Co-Authored-By: Claude Opus 5.5 <[email protected]>
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 23, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f28323d4a8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/server/src/orchestration-v2/RestartContinuation.ts Resolved

Uh oh!

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

Nicholas Wasmiller and others added 2 commits November 23, 2026 17:12
Nicholas Wasmiller @claude
fix(server): a resumed idle compaction no longer waits on the queue i…
c445255
…ts restart held

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Nicholas Wasmiller
Merge remote-tracking branch 'origin/main' into fix/compaction-restar…
4c7f648
…t-resume
@github-actions github-actions Bot removed the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 24, 2026
Nicholas Wasmiller
Merge remote-tracking branch 'origin/main' into fix/compaction-restar…
36127e9
…t-resume

# Conflicts:
#	docs/user/composer.md
@Motaghi Motaghi mentioned this pull request Nov 28, 2026
fix(server): a compaction sent on return is dropped when the thread no longer needs it #44825
Open

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] left review comments
@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments
@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

bugfix Fix PR opened by an issue lead; enters the PR loop pr:gate-failed A land gate failed size:M 30-99 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]: A /compact cut by a server restart never resumes, and the message queued behind it never starts

Uh oh!

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

4 participants

@Derpedyea @maria-rcks @juliusmarminge @josephv123
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.