Skip to content

refactor(collection): drop dead fields, unused options and exports - #62

Open
KazKozDev wants to merge 1 commit into
mainfrom
chore/collection-dead-code
Open

KazKozDev wants to merge 1 commit into
mainfrom
chore/collection-dead-code

Conversation

@KazKozDev

Copy link
Copy Markdown
Owner

What this changes

Removes about a dozen lines of dead code found in a review of the collection work from #61. Behaviour stays the same. The only difference is that the model no longer receives one constant string with every rows capture.

  • applyBatch returns the queue directly. No caller read the advanced field.
  • The unused maxSteps option on followCollection and width option on compactRows are gone. A constant remains as the guard against an endless loop.
  • FollowOutcome and FOLLOW_BUDGET_MS are no longer exported.
  • compactRows no longer adds note: 'Full rows are saved…' to every capture. The COLLECTION rule in prompts.ts already says this.

Why

These are fields nobody reads, options nobody passes and exports nobody imports. The note also cost tokens on every collection step.

How it was verified

  • ./scripts/check.sh passes locally (419 unit tests, lint, knip, smoke tests, build)
  • Existing tests updated for the new applyBatch return value

Checklist

  • One concern per PR
  • Commit messages follow Conventional Commits
  • Docs need no changes; no behaviour, default, permission or env var changed
  • CHANGELOG.md needs no entry; nothing user-visible changed

Security-sensitive areas

  • None of the above

🤖 Generated with Claude Code

- applyBatch returns the queue; no caller read `advanced`.
- followCollection loses the maxSteps option nobody passed (a constant
  stays as the runaway guard), compactRows loses the width option.
- FollowOutcome and FOLLOW_BUDGET_MS are no longer exported.
- compactRows stops sending a constant note on every capture; the
  prompt already says saved rows reach the user.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-22T10:07:19.162716Z
We couldn’t complete this review. Comment @codex review to try again.
8813615 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

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