Skip to content

fix(board): integrate ordered comments with session ownership - #3360

Open
Chris0Jeky wants to merge 14 commits into
codex/3305-loading-ownersfrom
codex/3303-comment-integrate
Open

Chris0Jeky wants to merge 14 commits into
codex/3305-loading-ownersfrom
codex/3303-comment-integrate

Conversation

@Chris0Jeky

@Chris0Jeky Chris0Jeky commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Comment reads and writes can settle out of order, overwrite newer edits, or publish into a replacement session. This integrates the reviewed ordering work from #3304 with the existing session and loading ownership from #3358 and #3359. Same-comment writes retain user intent order, late reads cannot replace newer cache state, and logout retires queued transport and recovery publication. This reduces stale comments and manual refresh work while preserving review-first behavior.

Closes #3303

Stack base: codex/3305-loading-owners (#3359). Merge the oldest parent first. The source #3304 history is preserved as the second parent of 29c24e92577aa4a87c629b63eda40178c03dc2e5; its branch remains unchanged. The ancestor CI-coordinate changes still await the maintainer review recorded in OUTSTANDING_TASKS.md under ADR-0066. This PR does not supply that approval.

Validation of initial integration 29c24e9:

  • Focused board/comment and modal regression checks: 458 passed across 31 files, including three new real-Pinia session/loading integration cases. Baseline before integration: 11 failed, 77 passed.
  • npx vitest --run --maxWorkers=2: 7,455 passed, 3 existing skips, 522 files.
  • npm run build (including typecheck) and npm run lint: passed; 11 existing lint warnings.
  • Documentation governance and node scripts/check-doc-links.mjs: passed; zero broken links and three existing masking warnings.
  • Chromium: two passing Legacy/Paper card-modal mounting/navigation checks. Direct comment CRUD and concurrency are covered by the focused component/store tests; these two browser checks do not assert comment CRUD.
  • One fresh independent review of source preservation plus the session/loading composition: no HIGH/CRITICAL defects or actionable nonblockers. The source PR's completed review rounds were not reopened.

docs/STATUS.md records the integrated behavior. Hosted required CI and qualification against the final merged parent remain pending. Local evidence is retained in .runtime/ in the owned integration worktree and will be archived by the coordinator before cleanup. OUTSTANDING_TASKS.md retains all owner-controlled decisions.
The final fix at 0b02ea8 preserves already submitted queued edits/deletes across same-session board navigation. Only session retirement cancels queued transport; visit/cache ownership still suppresses departed-board publication. Both real-Pinia regressions failed before the correction. Scoped verification: 153 tests passed across eight files, plus build/typecheck/lint/docs checks; a fresh second/final review found no new HIGH/CRITICAL defects. The full-suite and browser results above belong to the initial integration; the final fix was verified against its changed seam. Required CI is restarted at the final head. The separate MEDIUM stalled old-session queue concern is tracked in #3362 and explicitly declined for this fix scope.

@Chris0Jeky

Copy link
Copy Markdown
Owner Author

Independent integration review at 29c24e9 against 4fa3911 is complete: no introduced HIGH/CRITICAL defects or actionable nonblockers. The bounded review verified session guards at queued transport, read publication, successful-write invalidation and recovery boundaries, plus token ownership through queued loading. The reviewed source #3304 ordering and assertions are preserved; its completed review rounds were not reopened.

Coordinator verification: 458 focused tests; full frontend 7,455 passed and three existing skips; build/typecheck/lint and documentation checks passed; two Chromium Legacy/Paper modal checks passed. Browser coverage proves mounting/navigation, while direct comment behavior is covered by component/store tests. Required CI 35776877118 is pending. Parent PRs #3358 and #3359 retain their separate maintainer-review gates.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 29c24e9257

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread frontend/taskdeck-web/src/store/board/cardCommentStore.ts
Comment thread frontend/taskdeck-web/src/store/board/cardCommentStore.ts
@chatgpt-codex-connector

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-09-22T19:59:32.421939Z 29c24e9 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.

@Chris0Jeky Chris0Jeky left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coordinator verification: correct ordering slice, recommend merge after parent #3359 lands. Mechanism verified: per-comment tails serialize same-comment writes so server commit order follows intent (first intent transports synchronously, later intents wait regardless of predecessor outcome, tails always settle); queued dispatch rechecks session only so same-session navigation no longer discards intent (the Codex P2, maintainer-confirmed fixed); read/mutation versions plus cache-container identity and visit generation suppress stale publication across A-B-A; stale-visit successful writes reconcile via guarded refetch with failure toast. Creates correctly bypass the queue (no ID to key on) with stable-ID dedupe. Cross-session tail blocking is correctly classified as availability-only (new intent runs with new credentials after old transport settles) and tracked in open #3362. Minor note: read/mutation version maps accumulate one number per touched card for the session (negligible). 18 new tests match the contract; full CI green, mergeable clean into parent. Stack order: land #3359 first, then this.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Review

Development

Successfully merging this pull request may close these issues.

1 participant