Repository navigation
Conversation
The hook matched the provider ID "claude" only, so agents on custom providers declared with `extends: "claude"` (e.g. "claude-work") never got the entrypoint label. Resolve the provider type by following the configured `extends` chain through `paseo.config.get()`. The built-in provider keeps its fast path, cycles end the walk, and a config read failure leaves the session unchanged instead of failing the open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
The
agent.session_openhook only labels sessions whose provider ID is exactlyclaude:Custom providers declared in
agents.providerswith"extends": "claude"(e.g.claude-work, used to give Claude separate credentials or a proxy base URL) get their own provider ID, so their sessions never receiveCLAUDE_CODE_ENTRYPOINT=Paseoand Claude Code falls back tosdk-cli. Setups that disable the built-inclaudeprovider and run only custom ones get no label at all.Change
extendschain frompaseo.config.get()(config.providers[id].extends) until it reachesclaude.claudeprovider keeps a fast path, so it never reads the config.extendscycle ends the lookup, and the session is left unchanged.beforehook fails the session open.paseo.configis already in the pinned@getpaseo/plugin0.8.0-beta.1, so therequirements.paseorange is unchanged.Verification
npm test,typecheck,lintandformat:checkpass. New tests cover a directextends: "claude", a chained one, a non-Claude provider whose name starts withclaude, anextendscycle, and a config read failure.claudedisabled and a customclaude-*provider extending it: before the change the agent's Claude process hadCLAUDE_CODE_ENTRYPOINT=sdk-cli; with this branch installed it hasCLAUDE_CODE_ENTRYPOINT=Paseo.🤖 Generated with Claude Code