Skip to content

fix(aggregator): record-claude-launch rejects unknown/misspelled/joined/duplicate args - #7342

Merged
dezren39 merged 1 commit into
mainfrom
creator-a/7332-record-claude-launch-unknown-args
Nov 8, 2026
Merged

dezren39 merged 1 commit into
mainfrom
creator-a/7332-record-claude-launch-unknown-args

Conversation

@dezren39

@dezren39 dezren39 commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Fixes #7332

record-claude-launch probed argv with indexOf only (arg() at :47, taskRefs flatMap at :65), so unknown tokens were silently ignored — the unknown-token half left after #3415/#6895 hardened the values:

  • --tas developing-today/code#123 (typo) → record appended with no taskRefs — the session↔task linkage the script exists to create is gone, exit 0
  • --task=developing-today/code#123 (joined) → same dropped linkage, exit 0
  • --fil <intended.jsonl> (typo) → record written to the default registry file, not the intended one, exit 0
  • --stats done / --modle sonnet / --parnt sess-123 (typos) and --model=sonnet (joined) → defaults/null/missing fields recorded, exit 0
  • duplicate --label/--id → first value silently wins, exit 0

Verified pre-fix on the laptop at main 36e5b3eb46 with the real script run verbatim (md5 41403504aadfa51193d0de228c9c829d, probe ~/git/fleet/probe-claude-launch-unknown-args, fake HOME for the default-file case); the documented control invocation recorded exactly what it named.

Change

Verification


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 8, 2026 06:10
@coderabbitai

coderabbitai Bot commented Nov 8, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 21 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f184d6eb-c550-4bac-9759-15123a879b57
Commits

Reviewing files that changed from the base of the PR and between 36e5b3e and e492bf9.

Files selected for processing: 2

  • pm-stack/aggregator/scripts/record-claude-launch.ts
  • pm-stack/aggregator/test/record-claude-launch-unknown-args-7332.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 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-08T06:12:37.424248Z e492bf9 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.

@dezren39 dezren39 added kind/bug Something isn't working (prefixed form of the classic bug label) app/aggregator Package/app: aggregator (pm-stack in this repo) source/creator Filed by the new-issue-creator job labels Nov 8, 2026
@dezren39
dezren39 merged commit cfd7efd into main Nov 8, 2026
2 of 4 checks passed
@dezren39
dezren39 deleted the creator-a/7332-record-claude-launch-unknown-args branch November 8, 2026 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app/aggregator Package/app: aggregator (pm-stack in this repo) kind/bug Something isn't working (prefixed form of the classic bug label) source/creator Filed by the new-issue-creator job

Projects

None yet

1 participant