Skip to content

Add file-path context to Claude settings.json parse errors in setup.ts - #39

Merged
jayminwest merged 3 commits into
mainfrom
warren/run_eysfc9sf09tb
May 28, 2026
Merged

Add file-path context to Claude settings.json parse errors in setup.ts#39
jayminwest merged 3 commits into
mainfrom
warren/run_eysfc9sf09tb

Conversation

@jayminwest

Copy link
Copy Markdown
Owner

Summary

fix(setup): include settings.json path in JSON parse errors

Run

  • Warren run: run_eysfc9sf09tb
  • Agent: pi
  • Cost: $0.715 (26 in / 5.1k out / 509.6k cache-r)

Seeds

  • mulch-1b36 — Add file-path context to Claude settings.json parse errors in setup.ts

Commits (2)

  • 437e91d fix(setup): include settings.json path in JSON parse errors
  • f076d1d chore(warren): seeds state

Files changed

.seeds/issues.jsonl         |  2 +-
 src/commands/setup.ts       | 15 ++++++++++++---
 test/commands/setup.test.ts | 41 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 54 insertions(+), 4 deletions(-)

Prompt

Show prompt
work on sd mulch-1b36

🤖 Opened by warren run run_eysfc9sf09tb

warren-agent and others added 2 commits May 28, 2026 13:18
Wrap JSON.parse calls in the Claude recipe's install/check/remove with
a small parseClaudeSettings() helper that catches SyntaxError and
rethrows with the absolute settings.json path. A corrupted settings file
now yields:

  Failed to parse Claude settings at /.../.claude/settings.json: <reason>

instead of a bare 'Unexpected token …'. Matches the file:line context
convention readExpertiseFile already uses (mx-7c199c).

Closes mulch-1b36.
@jayminwest
jayminwest enabled auto-merge (squash) May 28, 2026 13:19
setup-bun@v2 was reading engines.bun (">=1.0.0") from package.json and
resolving the range via api.github.com/repos/oven-sh/bun/git/refs/tags,
which intermittently returns 404 and fails the job. Pinning bun-version
skips that range-resolution path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jayminwest
jayminwest merged commit a75d757 into main May 28, 2026
2 checks passed
@jayminwest
jayminwest deleted the warren/run_eysfc9sf09tb branch May 28, 2026 19:21
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