refactor: route runtime status marker helper#241
refactor: route runtime status marker helper#241ndycode wants to merge 1 commit intorefactor/pr4-runtime-status-marker-helperfrom
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
index.tsWhat Changed
getStatusMarker()wrappergetRuntimeStatusMarker(...)directly while preserving the same v1/v2 marker behaviorValidation
npm run lintnpm run typechecknpm run buildRisk and Rollback
faf62e3to restore the inline runtime status-marker wrapper inindex.tsAdditional Notes
note: greptile review for oc-chatgpt-multi-auth. cite files like
lib/foo.ts:123. confirm regression tests + windows concurrency/token redaction coverage.Greptile Summary
removes the inline
getStatusMarker()pass-through wrapper fromindex.tsand routes all 10 call sites directly togetRuntimeStatusMarker(ui, status)— a clean dead-code elimination with no behavioral change.(ui, status) => getRuntimeStatusMarker(ui, status)with no extra logicgetRuntimeStatusMarkerwas imported at line 189 before this PR, so no new dependency is introduceduireference — no shared mutable statelib/runtime/status-marker.tshas no test file and no existing suite exercisesgetRuntimeStatusMarker— both the v1 and v2 branches across all three status values are untested; follow-up coverage is recommended given the 80% project thresholdConfidence Score: 5/5
getRuntimeStatusMarker, which is a non-blocking p2test/runtime-status-marker.test.tsas a follow-upImportant Files Changed
getStatusMarkerpass-through wrapper and replaced 10 call sites with directgetRuntimeStatusMarker(ui, ...)calls — behavior is identical, import was already in place, no logic changedSequence Diagram
sequenceDiagram participant C as index.ts (call site) participant H as lib/runtime/status-marker.ts note over C,H: before this PR C->>C: getStatusMarker(ui, status) C->>H: getRuntimeStatusMarker(ui, status) H-->>C: glyph string note over C,H: after this PR C->>H: getRuntimeStatusMarker(ui, status) H-->>C: glyph stringPrompt To Fix All With AI
Last reviewed commit: "refactor: route runt..."