Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(orchestration-v2): restore earlier app agent transcript pages #14104

MergedBil0000(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/14104/headmerged by juliusmarminge View on GitHub

Problem

In the new orchestrator, app agent prompts were counted as user turns. That bypassed history page limits, so agent details could show only recent text or tools with no way to load the rest.

Fix

Count only actual user prompts as turns. Page agent-only history by bounded activity rows in both SQLite and memory, so Load earlier turns reaches the full transcript. Long histories still load in pages.

Verified with 43 focused server tests, targeted format/lint/typecheck, and a local web capture using fake agent data.

Before — reported view

Before: agent details show only recent commands

After — fake app agent, older activity loaded

After: earlier activity and the finished response appear in the normal chat UI

Built by GPT-6 Sol in the T3 Code Codex harness.

    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

      Approvability

      Verdict: Approved at c2d88fa

      Macroscope's review found this PR approvable — This is a focused pagination bug fix that restores earlier activity for agent-only transcripts while preserving user-turn limits and keeping SQLite and memory behavior aligned. The change is limited to transcript reads and includes targeted regression coverage, with no product-default, schema, security, or deployment impact.

      Notes:

      • Diff unchanged. Approvability was decided on eligibility alone.
      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. juliusmarminge added labelsmacroscope-review

    4. juliusmarminge closed this

    5. juliusmarminge added labelstriage:keep-open

    6. juliusmarminge reopened this

    7. Macroscope skipped reviewing this pull request. Per-review cost limit exceeded (workspace setting).

      This review would cost an estimated $36.82, which exceeds your per-review limit of $15.00.

      The top 3 files driving up this estimate:

      FileDiff SizeEstimate
      apps/server/src/orchestration-v2/Orchestrator.ts368.90KB$9.41
      packages/contracts/src/orchestrationV2.ts119.61KB$3.05
      apps/server/src/mcp/OrchestratorMcpService.ts75.70KB$1.93

      Tip

      To get this pull request reviewed, you can:

      1. Comment @macroscope-app on this PR to request a manual review (monthly spend limits still apply).
      2. Exclude the file(s) above from review by adding a pattern to your .macroscope/ignore.md — note that creating this file replaces Macroscope's built-in default ignores rather than extending them.
      3. Raise your cost limit in your workspace billing settings.
      [Turn off this reminder going forward](https://app.macroscope.com/pingdotgg/settings#Personal)
    8. Warning

      Review limit reached

      Only developers with an assigned seat can use this organization's usage-based review budget, and seats here are assigned manually. Ask an admin to assign a seat, or change the review continuation mode in Billing.

      Next included review available in 45 minutes.

      Check out review usage here.

      View limit details

      Limit details: You’ve used all 10 included reviews currently available.

      Learn how review limits work.

      Review configuration:

      ⚙️ Run configuration

      Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml

      Review profile: CHILL

      Plan: Advanced

      Run ID: 0b844c38-3b54-42f9-898e-2cfdd2627768

      📥 Commits

      Reviewing files that changed from the base of the PR and between cc1e634bfa62edd56ff792eea666e436fdef788f and c2d88faef4cd994fd18d91d8119e6409694a6734.

      📒 Files selected for processing (4)
      • apps/server/src/orchestration-v2/ProjectionStore.test.ts
      • apps/server/src/orchestration-v2/ProjectionStore.ts
      • apps/server/src/orchestration-v2/threadHistoryPaging.test.ts
      • apps/server/src/orchestration-v2/threadHistoryPaging.ts
      • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Autopilot is currently an internal CodeRabbit preview.


      Comment `@coderabbitai help` to get the list of available commands.
    9. juliusmarminge merged this88744f3

    10. juliusmarminge closed this

Sign in to join this conversation.