Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(orchestrator): preserve task-step elapsed time across restart #10051

Mergedsaphid(GitHub profile, opens in a new tab)merged 2 commits intot3code/codex-turn-mapping fromrefs/pull/10051/headmerged by juliusmarminge View on GitHub

Plan-step durations were inferred in the web client and disappeared after reconnecting or restarting. This persists timing with each plan update and passes completed durations to the existing task display. Timing reads fetch only the relevant plan, without loading thread history.

Changed task text resets inherited timing because several providers use positional step IDs. Repeated labels with different IDs remain independent. Rewording a running step resets its clock; identical labels shifted onto the same positional ID cannot be distinguished. Mobile accepts the shared plan fields but does not currently display durations.

Validation: 55 focused ingestor, turn-control, and web presentation tests passed; the amended ingestor suite passes all 14 tests, including restart persistence, repeated labels, skipped running states, and positional-ID reuse. Server and web typechecks passed. This changes persisted timing and reconnect behavior, with no new visual layout.

Reviewed by Claude Fable 5.1. Prepared with Codex in T3 Code.

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Layers/ProjectionCheckpoints.ts

      Removing ProjectionCheckpointRepositoryLive deletes the only implementation of the ProjectionCheckpointRepository service, but apps/server/src/persistence/Services/ProjectionCheckpoints.ts still declares ProjectionCheckpointRepositoryShape and the Context.Service tag, so the service can no longer be provided anywhere. Nothing consumes the tag or the input schemas today — orchestration/Layers/ProjectionSnapshotQuery.ts imports only the ProjectionCheckpoint row schema — so consider finishing the removal in the same change: drop the tag, ProjectionCheckpointRepositoryShape, and the ListByThreadIdInput / GetByThreadAndTurnCountInput / DeleteByThreadIdInput schemas from the Services module and keep just ProjectionCheckpoint. (Also worth dropping the now-dead ORCHESTRATION_PROJECTOR_NAMES.checkpoints entry in ProjectionPipeline.ts.) If the checkpoint projection is still expected to be wired, the layer should stay instead.

      No longer relevant as of c238f5c6c7271606f297c7f0fc0e2121022105e2

    3. Fixed the verified unused declarations in 3c2205439: removed the orphan service tag, shape, input schemas and imports while retaining ProjectionCheckpoint. Server typecheck (vp run --filter t3 typecheck), targeted lint and diff check pass. The suggested projector-name removal does not apply: ProjectionSnapshotQuery.ts and ProjectionPipeline.ts still consume ORCHESTRATION_PROJECTOR_NAMES.checkpoints, so those references remain.

    4. Sorry, I'm unable to act on this request because you do not have permissions within this repository.

    5. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at 78a3e96

      Macroscope's review found this PR approvable — This is a narrowly scoped, backward-compatible bug fix that persists task-step timing through ingestion restarts and passes it to an existing UI path. Its production impact is confined to todo-list plan updates and is covered by targeted restart and presentation tests.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    6. Bugbot is paused — on-demand spend limit reached

      Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

      A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

    7. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Macroscope has since reviewed this pull request. An earlier review was skipped by a cost limit; a review has now completed, so that notice no longer applies.

    8. Bugbot is paused — on-demand spend limit reached

      Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

      A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

    9. saphid(GitHub profile, opens in a new tab) changed the title

    10. juliusmarminge merged this89459e3

    11. juliusmarminge closed this

Sign in to join this conversation.