Skip to content

feat(web): add Turn timeline and usage - #20

Merged
sam2tom merged 5 commits into
mainfrom
codex/issue-7-turn-timeline
Sep 16, 2026
Merged

sam2tom merged 5 commits into
mainfrom
codex/issue-7-turn-timeline

Conversation

@sam2tom

@sam2tom sam2tom commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • load every Turn page independently of Session/Item recovery
  • reconcile exact Turn lifecycle SSE snapshots without regressing terminal state
  • show accessible lifecycle status, server timing, safe errors, linked Items, and scoped Usage
  • pin the Parsar Turn/Usage fixture and document pagination, recovery, tracing, and unavailable-value boundaries
  • preserve the canonical Environment UUID identity behavior now on main

Acceptance evidence

  • pagination follows limit=100&order=asc, rejects repeated/cyclic cursors and cross-Session Turns
  • queued, in-progress, waiting, completed, failed, and cancelled states have accessible labels
  • completed and running durations use server timestamps; missing/invalid values render Unknown
  • errors do not hide persisted Items; Items associate only through protocol turn_id
  • input, output, total, cached, and reasoning token counts remain distinct for Session and per-Turn Usage
  • stale reads, Session switching, terminal SSE refresh, durable/live races, failed timeline reads, and narrow layout are covered

Latest-main merge

  • tested head: 0e17eddfcc6ff693ae6ac4ab78d17933002c1248
  • tested base: 5aa90e4dad33948e7efc66922a626745ac5cb806
  • latest main was integrated with an ordinary merge commit; no rebase or force push
  • origin/main is an ancestor of the tested head
  • diff against main is exactly the original 16 Issue [agent] Add Turn timeline, real elapsed time, errors, and Usage #7 paths

Validation

  • focused UUID + Turn tests: agents-client 42/42; Web 49/49
  • pnpm check with repository-pinned pnpm 10.30.3: root 4/4, agents-client 46/46, Web 166/166; typecheck and build passed
  • AGENTS_FIXTURE_PORT=18112 AGENTS_WEB_PORT=4192 pnpm test:acceptance: 15/15 passed
  • git diff --check origin/main...HEAD: passed
  • unmerged-index and private-state tracked-file audits: passed
  • local report: /private/tmp/agents-core-web-pr20-merge-acceptance.md (intentionally untracked)

Boundaries

  • no Parsar Core changes, paid calls, deployment, service shutdown, branch deletion, or Worktree deletion
  • remains Draft pending the separately authorized Ready/merge step

Closes #7

…meline

# Conflicts:
#	apps/web/e2e/agents-lifecycle.spec.ts
#	apps/web/e2e/fixture-core.mjs
#	apps/web/src/App.tsx
#	apps/web/src/features/sessions/environment/EnvironmentPanel.test.tsx
#	apps/web/src/features/sessions/environment/EnvironmentPanel.tsx
#	apps/web/src/features/sessions/environment/environment-state.test.ts
#	apps/web/src/features/sessions/environment/environment-state.ts
#	docs/core-connection.md
#	docs/protocol-coverage.md
#	packages/agents-client/src/protocol-types.test.ts
@sam2tom
sam2tom changed the base branch from codex/issue-16-environment-retrieve-status to main September 16, 2026 00:15
@sam2tom
sam2tom marked this pull request as ready for review September 16, 2026 00:20
@sam2tom
sam2tom merged commit bac551c into main Sep 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[agent] Add Turn timeline, real elapsed time, errors, and Usage

1 participant