Skip to content

perf(staged): poll child session badges for their title only - #1011

Merged
matt2e merged 2 commits into
mainfrom
session-deps-follow-up
Nov 2, 2026
Merged

matt2e merged 2 commits into
mainfrom
session-deps-follow-up

Conversation

@matt2e

@matt2e matt2e commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #1007. Running children of a project session rode along in the live hint poller as full trackers, so each one cost a transcript fetch per 750 ms tick on top of the getSession call. Nothing reads a child's hint: the badge only needs its ACP title.

  • syncRunningSessionIds now takes a second, title-only id list. Those trackers stop after the title is set and skip the display-root resolve and message polls. A tracker's mode follows the lists on every sync, so promoting an id to full fetches its whole transcript once.
  • ProjectSection passes running children through the title-only list.
  • Drop the unused githubRepo/subpath fields from ChildSessionInfo (their only consumer, the badge repo tint, was removed in 153c653) along with the project_repos join behind them.

Test plan

  • New liveSessionHints tests cover title-only trackers (no transcript fetch, promotion to full, demotion clears the hint)
  • Store tests updated for the trimmed ChildSessionInfo
  • Pre-push CI (crates + staged-ci + differ-ci) passed

🤖 Generated with Claude Code

matt2e and others added 2 commits November 2, 2026 11:33
Running children of a project session rode along in the live hint poller as
full trackers, so each one cost a transcript fetch per 750 ms tick on top of
the `getSession` call. Nothing reads a child's hint: the badge only needs its
ACP title. `syncRunningSessionIds` now takes a second, title-only list; those
trackers stop after the title is set and skip the display-root resolve and
message polls. A tracker's mode follows the lists on every sync, so promoting
an id to full fetches its whole transcript once.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Matt Toohey <contact@matttoohey.com>
`githubRepo` and `subpath` were the lookup key for the child badge's repo
tint, which 153c653 removed. Nothing read them since: the badge builder
ignores them and the chat opener derives its repo label from the branch.
Remove the fields and the `project_repos` join behind them, and reword the
struct docs on both sides to say what the projection still carries, including
that queued children are returned.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Matt Toohey <contact@matttoohey.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T00:56:29.810265Z cb62eed PR opened
ℹ️ 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.

@matt2e
matt2e merged commit b3bda40 into main Nov 2, 2026
4 checks passed
@matt2e
matt2e deleted the session-deps-follow-up branch November 2, 2026 01:48
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.

1 participant