Provenance stamp: This issue was triaged on June 13, 2026 as part of the older-than-two-month GitHub issue triage exercise.
Source issues: #213, #419, #486, #489
Summary
The review editor has several maintainability issues that should be handled as one focused cleanup effort. The common theme is not polish. It is reducing future regression risk in a complex UI by making state, API-mode checks, shared controls, and formatting safer.
What the source issues requested
Triage determination
These are related enough to plan together, but each item should still be implemented in small safe PRs. Keeping them under one tracking issue helps avoid piecemeal cleanups that make the review editor harder to reason about.
Acceptance criteria
- Review editor API-backed behavior uses a dedicated
isApiMode signal, not !!origin.
- Review state is split into focused contexts beyond the existing job-log split.
- Shared copy button, copy/check icons, and clipboard state are reused across editor and review surfaces where practical.
- Biome formatting is introduced as a safe format-only change before any lint-rule enforcement.
- Unsafe automatic lint fixes for React hook dependency arrays are not used.
- The production build and relevant review-editor flows are verified after formatting or state refactors.
- The old source issues can be closed after their specific refactor requirements are represented here.
Provenance stamp: This issue was triaged on June 13, 2026 as part of the older-than-two-month GitHub issue triage exercise.
Source issues: #213, #419, #486, #489
Summary
The review editor has several maintainability issues that should be handled as one focused cleanup effort. The common theme is not polish. It is reducing future regression risk in a complex UI by making state, API-mode checks, shared controls, and formatting safer.
What the source issues requested
!!originas a proxy for API mode with a dedicatedisApiModestate.ReviewStatecontext into focused contexts to prevent cascading re-renders during review activity.Triage determination
These are related enough to plan together, but each item should still be implemented in small safe PRs. Keeping them under one tracking issue helps avoid piecemeal cleanups that make the review editor harder to reason about.
Acceptance criteria
isApiModesignal, not!!origin.