Repository navigation
Conversation
Fifteen functions with no reference anywhere in the code, scripts or tests: cdpPressAndHold, summarizeCall, snapshotSignature, downloadJson, downloadPdfViaPrint, sha256Hex, onSWEvent, anySubtasksPending, getCurrentSubtask, getSubtaskResult, skillPromptForSubtask, isInterrupted, retryPromptForStep, learnRecovery and clearMemory. learnRecovery was the only writer of recoveryMemory, so getRecoveryHint always came back empty while still querying IndexedDB on every retried step. The read and its call site go too. The Dexie table stays declared so existing databases keep a valid schema without a migration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
4 tasks done
KazKozDev
added a commit
that referenced
this pull request
Nov 22, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Removes 253 lines that nothing calls. No behaviour changes, except that a retried step no longer runs an IndexedDB query whose result was always empty.
cdpPressAndHoldsummarizeCall,snapshotSignaturedownloadJson,downloadPdfViaPrintsha256Hex,onSWEventanySubtasksPending,getCurrentSubtask,getSubtaskResult,skillPromptForSubtaskisInterrupted,retryPromptForSteplearnRecovery,clearMemorygetRecoveryHintand its call inagent-loop.ts. Its only writer,learnRecovery, was never called, so therecoveryMemorytable stayed empty.recoveryMemorytable stays declared instorage.ts, with a comment, so existing databases don't need a schema migration.Why
Found by an audit with knip (unused exports), filtered to definitions with no references at all. Exports that are used inside their own file are a separate PR.
How it was verified
./scripts/check.shpasses locally (419 unit tests, lint, typecheck, knip, smoke tests, build)Reviewer notes
scripts/bridge-p0-live.mjsandbridge-p1-p2-live.mjsare no longer referenced anywhere, but this PR keeps them. They hold 32 live acceptance checks thatbridge-tools-live.mjsdoes not cover.learnRecoveryafter a successful retry, not to delete it. This PR treats it as unfinished.Checklist
Security-sensitive areas
🤖 Generated with Claude Code