Repository navigation
perf(chat): pace board history refreshes and reuse cursors - #174407
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Keep summary updates bounded and incremental through the existing refresh coordinator and transcript reducer. Preserve the requested maxChars limit during delta catch-up.
95b8bb2 to
945ad91
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Merged reviewed head CI run 38930867257 completed. Build, lint, production/test types, UI/Gateway tests, E2E, and security passed. The two inherited failures are The independent review and hosted exact-head code review were clean. The native publisher stopped before submission because its separate PR review worktree was absent; the explicitly authorized exact-SHA REST fallback performed the squash merge. |
* commit 'a4c73619a5c': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…157433 * commit '2e8bfec53fc1cf06c9e438f42b027a82e04ace9a': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…/decision-onnx-v2-proof-20261016 * commit '2e8bfec53fc1cf06c9e438f42b027a82e04ace9a': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…ision-accounting-native * commit '2e8bfec53fc1cf06c9e438f42b027a82e04ace9a': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…158510 * commit '26cbd409b9753a9318a6dc09f97b2f0b4b776a09': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…esafe-decision-native * commit '26cbd409b9753a9318a6dc09f97b2f0b4b776a09': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…/decision-tool-v2-proof-20261016 * commit '26cbd409b9753a9318a6dc09f97b2f0b4b776a09': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…174407) Keep summary updates bounded and incremental through the existing refresh coordinator and transcript reducer. Preserve the requested maxChars limit during delta catch-up.
What Problem This Solves
An open board session summary rereads its full 20-message tail on every matching session or message event, including unchanged transcript windows. Its in-flight refresh loop immediately starts another full read when events arrive during a request.
User Impact
Board summaries catch up incrementally and combine event bursts into paced refreshes. Opening, reconnecting, and manual Retry still load immediately; hidden summaries stop reading and reload on return. Automatic updates can appear up to the existing refresh coordinator's four-to-five-second collection window later, with five-to-15-second pacing after slow reads. Rendering is unchanged.
Why This Change Was Made
The main chat already uses cursor catch-up, bounded worker-projected pages, and shared in-flight reads. Its post-message recovery is necessary because live events deliberately omit some history projections. Public-page HTTP ETags are a separate transport; unchanged WebSocket history already has an empty-delta response carrying current metadata.
The board now reuses the existing event refresh coordinator instead of its immediate pending/dirty loop. It folds cursor envelopes through the shared transcript reducer, retains only 20 messages, and replaces the tail after cursor reset. All existing event invalidations remain, including metadata and access changes. The server also carries
maxCharsinto delta projection so the board's 12,000-character previews do not silently revert to the 8,000-character default after catch-up.Evidence
945ad91c1a9e10f601b5d0844fd5f664f00c175a(three files, 91.72 s). The first attempt stopped during setup because installed dependencies lagged the rebased lockfile; a frozen-lockfile install repaired the local toolchain. All seven changed files pass formatting with the updated pinned formatter. The reviewed implementation is unchanged; conflict resolution preserves main's new Solid bridge/avatar imports and plugin-steering option alongside the cursor text cap.Unchanged catch-up uses 38.8% less main CPU and 98.6% fewer response bytes. Full-tail control is neutral within observed round spread: 15.404 → 15.107 ms wall, 4.271 → 4.450 ms main CPU. The corrected text cap adds 4,000 bytes to the one-message delta compared with the old incorrectly capped delta.
Production delta: +29 lines (52 added, 23 deleted); the removed pending/dirty scheduling is replaced by the existing coordinator. Growth implements the existing cursor/reset wire contract and bounded reducer replay while preserving the board's preview cap. No new cache, config, schema, or transport.
Independent Codex autoreview: scoped-clean through P2, no accepted/actionable findings. Changed-file formatting, scoped repository lint, and diff checks passed.
Inherited CI Failures
Run 38930867257, attempt 1, tests merge
52ab6ad0e81e9fbab53fa3e96f1d2edb3d2e3fe3: main parent04d8503ee8ab97218b3283968293d079b1a8b219plus this PR's exact head. Both failures are outside the seven-file diff. Each failed job log was fetched once; no CI reruns.The automatic table labels both failures “new” relative to the older scheduled main run
38924503696. The direct reproductions below use CI's actual, newer main parent and establish that the PR did not introduce them.check-guards: duplicate-scan target coverage omitscli-parent-lifetime.mjs. Running the unchanged production checker with--coverageagainst each tree's complete tracked-path index reproduces the identical missing path and exit 1 on both base and merge. Only checker files and indexes were materialized in an isolated Linux sandbox; no full duplicate scan or full checkout was needed.checks-fast-baseline-ratchets: mock-export guard rejectssrc/flows/doctor-plugin-source-captures.test.ts:32, mocking../process/supervisor/darwin-bun-process-census.jswithout preserving exports or declaring isolation. A focused replay through the actual native TypeScript parser and mock scanner reproduces the identical missing-baseline factory on both base and merge (fingerprint0f314816d50228e6240f1048998f802dd80d499ba91277a72f2a366e9c574dd2, exit 1). Test source, target module, scanner, parser, and baseline ledger are byte-identical across those trees. This replays the failing factory decision, not the entire repository ratchet.CI is complete on the exact head: build, production/test types, lint, all UI and changed Gateway tests, E2E, and security checks passed. The only failed jobs are the two attributed above and their aggregate gate. Hosted code review also completed with no findings. Landing uses the authorized inherited-failure exception; failed CI is not represented as green.