Skip to content

Keep note review continuous and compile the final selection once - #109

Open
cu1ch3n wants to merge 8 commits into
mainfrom
fix/batch-review-compilation
Open

cu1ch3n wants to merge 8 commits into
mainfrom
fix/batch-review-compilation

Conversation

@cu1ch3n

@cu1ch3n cu1ch3n commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

What and why

Review choices could trigger manuscript compilation before application, and a duplicate build badge could wrap below the toolbar. Accepting a note also closed its drawer; a failed option switch could leave the previous option’s PDF under the newly selected tab.

  • Batch deferred review choices until confirmed manuscript application or commit. Preserve legacy batch completion through PDF decisions, note-drawer decisions and asynchronous option builds, including recovered decisions; exclude confirmation previews and branch-only saves.
  • Keep the note drawer open after decisions and advance to the next pending note in the same request after confirmation. Skip notes sharing the resolved edit, wait for asynchronous alternative saves, and retain the final result. Retire confirmed request IDs so undo followed by another decision works in the retained drawer; unconfirmed retries keep their IDs.
  • Preserve the selected note’s PDF highlight when the embedded renderer repaints, without scrolling again or moving keyboard focus.
  • Match each displayed comparison to its note, round, option and comparison version. Loading or failed options cannot display another choice’s PDF or be accepted before their comparison is ready; retry and late responses preserve the current selection.
  • Reconnect once for transient read-only option/preview failures. Validation errors and decision writes are not automatically retried.
  • Hide the duplicate build badge while the host toolbar shows progress. Keep standalone progress and failure messages.

Chinese review toolbar during compilation

Note drawer retained after review

How it was checked

  • TypeScript application check, production build, full translation consistency check and application-locale check. Existing request-failure translations were reviewed and retained for the new context.
  • 24 related unit tests, including preview reconnection limits, unchanged decisions, option context, prepared choices and cache recovery.
  • New browser regressions at 1440px and 390px: preview failure/retry, late responses, advancing past shared notes, asynchronous alternative saves, failed-save retry identity and retaining the final drawer. Both original drawer defects were reproduced on f0c85de.
  • Existing note-results browser suite: PDF/LaTeX candidates, live language changes, notes, mobile controls and persistence.
  • Earlier batching regression: real LaTeX, zero builds during choices and one after application; failure/retry and Chinese/English toolbar checks.
  • Additional browser checks for workspace switching, review notes and the main review flow.
  • Full static playground browser suite plus its 14 unit tests, including retained drawers, explicit closure, wraparound to a pending note and PDF selection after repaint.
  • Latest fixes: 202 app/workspace/note tests, TypeScript checks, production build, full translation checks, 1440px/390px drawer flow and real-LaTeX batching/failure recovery. Added regressions failed before the fixes and pass afterward: final legacy drawer decisions, resumed option-job completion, and repeat accept/reject after undo.
  • Latest-head CI passed on f19fcb1; fresh Codex review completed with no new findings after another full-PR review. All five review threads are resolved, including the two findings fixed in f19fcb1.
  • The previous head f0c85de passed CI and review. Its full local UI run exercised all 30 scripts: 28 passed; Git timeout assertions at check-git-workspace.mjs:153 and check-git-panel.mjs:249 failed identically on untouched base 9dcf5ca. These baseline failures are unrelated to this PR.
  • Browser checks use temporary state and separate profiles, without operating the user’s desktop app.

cu1ch3n commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

Please review the batching boundary (individual choices versus confirmed manuscript delivery), interrupted decision recovery, and the embedded toolbar's loading/error behavior. The changes are based on current main and include real-browser/LaTeX regression coverage.

@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T15:26:12.399184Z f19fcb1 Manual request
ℹ️ 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.

@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: e06592320a

ℹ️ 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 src/server/app.ts Resolved
Comment thread src/server/app.ts Resolved

cu1ch3n commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

Both findings were fixed in 5d3ee17 with regressions verified red before the fix and green afterward. Please review the updated head, especially legacy batch completion and reconciliation. The real browser/LaTeX test passes with zero builds during choices and one after application; the batching and toolbar regressions now also run in CI.

@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: 5d3ee1794c

ℹ️ 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 src/server/app.ts Resolved

cu1ch3n commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

The deferred commit finding is fixed in 3b7e013. Both save endpoints now use the same confirmed-delivery check, with the commit-hash fallback limited to legacy responses. Added coverage through the real commitTask adapter; all batching route regressions and typecheck pass. Please review the latest head.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 3b7e013c05

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

cu1ch3n commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

Please review the latest head f0c85de. The previous review completed without findings on 3b7e013. The only additional change makes the toolbar browser regression portable across Linux/macOS fonts: wait for the settled non-building toolbar and assert compilation preserves its measured height instead of assuming 44px. The full local Chromium review-flow check passes. CI has been restarted for this exact head.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: f0c85decef

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

cu1ch3n commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

The user found two additional review-flow defects. Please review latest head 65732f2, focusing on note advancement after both synchronous decisions and asynchronous alternative saves, selection/preview identity during failed or racing requests, and the bounded read-only reconnect.

Both original UI defects were reproduced by browser regressions on f0c85de. The fixes pass at 1440px and 390px; the existing note-results browser suite and 24 related unit tests pass. CI now includes both note-results and the new failure/race/advancement browser script. No user desktop app was operated.

@cu1ch3n cu1ch3n changed the title Batch review compilation until application and keep the toolbar compact Keep note review continuous and compile the final selection once Nov 9, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 65732f2ae3

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

Review the existing generic request-failure translations in their added note-preview context. Preserve their text and generation provenance while refreshing context fingerprints.

cu1ch3n commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

Please review final head 16c13a5. Production code is unchanged from 65732f2, which completed review without findings. This follow-up only refreshes nine translation-context fingerprints after confirming the existing generic request-failure translations still apply to note previews, and adds the drawer screenshot. The full i18n checks now pass; CI is rerunning.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 16c13a5f80

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

cu1ch3n commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

Please review head 041b05d. Updating the static demo assertions exposed another reproducible issue: the embedded renderer overwrites the host's selected-note classes when it repaints after a decision. ReviewNoteConnections now observes class changes only on linked change elements and restores those markers without re-scrolling or re-focusing; comparisons before toggling avoid observer feedback loops. Please check observer lifetime and focus behavior.

The full static playground browser test now passes, including the real renderer's pending-note marker, drawer retention, explicit outside-click closure and wraparound to an earlier pending note. Its 14 unit tests pass. The ordinary-editor note-results, note-options-flow (1440px/390px) and review-flow browser suites also pass.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 041b05d3d2

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

cu1ch3n commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

Independent web-only audit completed on 041b05d3d238f5064c84e20ccd38888028082914 in a separate Mac worktree. No additional fix was justified; the branch is unchanged.

  • Passed 80 related unit tests, application/engine/site builds, and both i18n checks.
  • Passed all seven relevant browser scripts: note-options-flow, note-results, review-flow, review-batching, playground, workspace-switcher-notes, and review-notes.
  • Extra temporary probes passed at 1440px and 390px: baseline failure/retry; successful baseline/candidate responses arriving after selection changes; keyboard tab focus; repeated renderer repaint without scrolling/refocusing; outside-click cleanup; one write on double-click; manual note navigation during a delayed save; final drawer after saving has fully settled.
  • Real LaTeX integration recorded 0 manuscript builds during choices and exactly 1 after final application, with compiler failure/retry recovery. English and Chinese toolbar screenshots were also visually checked.

One existing behavior was recorded outside this change: Escape on a drawer tab is consumed by the review tool shortcut handler, so it does not close the drawer. The relevant handler and dismissal code are unchanged from the base; outside-click dismissal passes. No unrelated shortcut change was added.

Current-head CI remains successful and Codex review is completed with no findings; all three older threads remain resolved. No user desktop app or real writing project was operated. No merge, release, or deployment.

cu1ch3n commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

Please perform a fresh review of the full PR at head 041b05d. Focus on confirmed decision batching across all write routes, option/baseline request races and retry identity, drawer advancement during asynchronous saves, and the lifetime of renderer highlight observers. The user requested another review/fix loop. The prior exact-head CI and audit are green; report actionable regressions, including gaps not covered by the existing browser tests.

@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: 041b05d3d2

ℹ️ 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 src/server/app.ts Resolved
Comment thread src/web/note-results.tsx Resolved

cu1ch3n commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

Please review head f19fcb1. Both findings from the latest review are fixed, with failing-before/passing-after regressions. The legacy batch fix also handles an accepted alternative finishing in a resumed build, using one workspace listener and the same zero-pending legacy predicate; deferred tasks must still compile only on application. Confirmed saves now retire their request identity so a retained final drawer can decide again after undo, while failed retries preserve their identity. Local validation: 202 app/workspace/note tests, typecheck/build, 1440px/390px drawer flow and real-LaTeX browser batching/failure recovery pass. Please check the full PR and these completion/identity boundaries.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: f19fcb123e

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

cu1ch3n commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

Please perform another fresh full-PR review at head f19fcb1, as requested by the user. All prior findings are fixed and exact-head CI is green. Look for remaining concrete regressions: asynchronous/recovered option completion and legacy manuscript flushing, listener lifetime across multiple server instances, response-loss/retry/undo identities in the retained drawer, and navigation while saves or preview reads are in flight. Please validate findings against actual reachable paths rather than repeating resolved issues.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: f19fcb123e

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

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

None yet

Development

Successfully merging this pull request may close these issues.

1 participant