Repository navigation
fix: Default Chat tab model to sonnet for subscription compatibility (#138) - #139
Merged
Merged
Conversation
…bilityai#138) Apply the same model="sonnet" default from Issue Abilityai#81 (execute_headless_task) to execute_claude_code() used by the Chat tab. Without this, Claude Code falls back to the agent's settings.json model which may be incompatible with the assigned subscription, producing a misleading "token expired" error. Closes Abilityai#138 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Merged
4 tasks done
vybe
pushed a commit
that referenced
this pull request
Jul 22, 2026
…k) + backward-compat regression (#1724) ent#187 decision: **accept the risk — no kill-switch** for the #183 full-directory skill packages. The change is strictly additive and backward-compatible, so a flag is unwarranted (and would be short-lived: Phases 2-3, #139/#178, build on this contract). Verified in code, not asserted: - A skill with NO frontmatter → `parse_frontmatter` returns (None, None), `extract_contract(None)` yields `user_invocable=True` with empty deps and no warnings; it still lists/loads with a first-paragraph description fallback. - A legacy-synced agent (no `.trinity-skill.json` manifest) → `compute_prune` returns nothing without a prior manifest ("no-meta → full inject, no prune — safe direction"); the platform only deletes files a prior package injection wrote, so an un-managed dir is re-injected, never destroyed. Deliverables (AC): the backward-compat regression test (`tests/unit/test_183_skill_packages_backward_compat.py`, 5 cases — both compat questions + the prune-only-what-we-wrote counterpart) and the release behavior-change note (`docs/releases/0.8.5.md` pre-cut seed) stating skill loading changed for all agents. Test + docs only — no behavior change; safe to land during the v0.8.5 soak (it IS the "skill packages" targeted regression the release plan calls for). Related to trinity-enterprise#187 · #183 Co-authored-by: Claude Opus 4.8 <[email protected]>
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.
Summary
execute_claude_code()lacked themodel="sonnet"default that Issue bug: Task execution ignores terminal model override, fails on subscription-incompatible default model #81 added toexecute_headless_task()(Tasks tab)agent_state.current_modelwas empty, Claude Code fell back to the agent'ssettings.jsonmodel — which could be incompatible with the subscription, producing a misleading "token expired" error"sonnet"Changes
docker/base-image/agent_server/services/claude_code.py— Add model defaulting inexecute_claude_code()docs/memory/changelog.md— Add changelog entrydocs/memory/feature-flows/parallel-headless-execution.md— Document both code paths now having the fixTest Plan
./scripts/deploy/build-base-image.sh) and restart agentsCloses #138
🤖 Generated with Claude Code