GeezerVison is showing github.com — feat(core): add a `configDir` setting to the Claude Agent provider by Tarquinen · Pull Request #62514 · anomalyco/opencode
Conversation
Tarquinen
commented
Nov 7, 2026
•
edited by opencodejr
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Issue for this PR
Closes #60793
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
Adds a configDir setting to the Claude Agent provider, so it can use a Claude config folder other than the default.
Check the spec for design notes.
How did you verify your code works?
bun run check from the repo root, and the Claude Agent tests in packages/core.
- Ran this branch's server against real Claude Code with
configDir set to a second logged-in folder. A chat, its generated title, a fork and a follow-up turn all ran in that folder.
Screenshots / recordings
N/A, not a UI change.
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Added by the opencode bot (AI-generated).
Related: #58141, #58214
Public API: adds settings.configDir (maps to CLAUDE_CONFIG_DIR) to the claude-agent provider and model settings (backwards compatible)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
rimless-casualty, thomasmol, and ekaterina145mira-crypto reacted with thumbs up emoji
davdroman reacted with hooray emoji
All reactions
-
👍
3 reactions
-
🎉
1 reaction
This was referenced Nov 18, 2026
# Conflicts:
# packages/core/src/plugin/provider/claude-agent/claude/sessions.ts
# packages/core/src/plugin/provider/claude-agent/claude/status.ts
…as and the opencode entrypoint label
Ports three fixes from the standalone plugin:
- A configDir of ~/.claude runs without CLAUDE_CONFIG_DIR, so Claude Code keeps its state in ~/.claude.json and existing sessions keep their record.
- A family's current model is listed under its alias (fable) rather than the version Claude Code reports, which changes with each release.
- Requests are labelled with CLAUDE_CODE_ENTRYPOINT=opencode.
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks sound and works as described. Tested in source mode: transcript lookup, fork and delete all ran in the configured folder through the worker, without touching the server's own environment. The Claude Agent tests pass (88/88). Not checked: a real Claude Code login or the compiled binary.
Public API: adds the settings.configDir key for the claude-agent provider and its models, mapped to CLAUDE_CONFIG_DIR, with a leading ~/ expanded. It is additive and backwards compatible. Existing session records keep their keys; only sessions on a non-default folder get a new record key.
One concern is worth fixing, noted inline: a chat in a per-model folder still updates the provider-wide Claude status.
Related: #58141, #58214
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new commit addresses the earlier status concern. Chats in a model's own configDir no longer replace the provider's login status, pricing or model list, and the updated test covers this. Claude Agent tests pass (88/88).
Public API: unchanged since the last review. It still adds settings.configDir (maps to CLAUDE_CONFIG_DIR) for the provider and its models, which is backwards compatible.
No new concerns.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Tarquinen
changed the title
feat(core): add Claude Agent config control
feat(core): add a configDir setting to the Claude Agent provider
Nov 20, 2026
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.
|