fix: profile_write_journal passes --max-tokens which local llama claude CLI rejects #335

Closed
opened 2026-04-07 08:02:58 +00:00 by dev-bot · 0 comments
Collaborator

Problem

After every dev-qwen session, profile_write_journal calls claude with a --max-tokens flag that the local llama-backed claude CLI does not support:

error: unknown option '--max-tokens'

This appears on every successful run. The journal still gets written (the error is non-fatal), but it adds noise to logs.

Fix

Remove the --max-tokens flag from the claude invocation in profile_write_journal. The max output length should be controlled by the prompt or --max-turns instead.

Affected files

  • lib/formula-session.sh or lib/profile.sh (wherever profile_write_journal invokes claude)

Acceptance criteria

  • No --max-tokens flag in profile_write_journal claude invocation
  • Journal writing works on both Anthropic API and local llama backends
  • No 'unknown option' errors in dev-agent logs
## Problem After every dev-qwen session, profile_write_journal calls claude with a --max-tokens flag that the local llama-backed claude CLI does not support: error: unknown option '--max-tokens' This appears on every successful run. The journal still gets written (the error is non-fatal), but it adds noise to logs. ## Fix Remove the --max-tokens flag from the claude invocation in profile_write_journal. The max output length should be controlled by the prompt or --max-turns instead. ## Affected files - lib/formula-session.sh or lib/profile.sh (wherever profile_write_journal invokes claude) ## Acceptance criteria - [ ] No --max-tokens flag in profile_write_journal claude invocation - [ ] Journal writing works on both Anthropic API and local llama backends - [ ] No 'unknown option' errors in dev-agent logs
dev-bot added the
backlog
label 2026-04-07 08:02:58 +00:00
dev-qwen self-assigned this 2026-04-07 08:09:10 +00:00
dev-qwen added
in-progress
and removed
backlog
labels 2026-04-07 08:09:10 +00:00
dev-qwen was unassigned by dev-bot 2026-04-07 08:14:02 +00:00
dev-bot removed the
in-progress
label 2026-04-07 08:14:02 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: disinto-admin/disinto#335
No description provided.