fix: pass agentDir to /compact command for agent-specific auth#24133
Merged
gumadeiras merged 3 commits intoopenclaw:mainfrom Feb 23, 2026
Merged
fix: pass agentDir to /compact command for agent-specific auth#24133gumadeiras merged 3 commits intoopenclaw:mainfrom
gumadeiras merged 3 commits intoopenclaw:mainfrom
Conversation
f146aa9 to
d4c6f1b
Compare
e8a3a17 to
1cf266f
Compare
The /compact command was not forwarding agentDir to compactEmbeddedPiSession, causing it to fall back to the default "main" agent directory for authentication. This broke compaction for non-default agents that have their own auth-profiles.json. Fixes openclaw#23812 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1cf266f to
4bb10ca
Compare
Member
|
Merged via squash. Thanks @Glucksberg! |
3 tasks
obviyus
pushed a commit
to jd316/openclaw
that referenced
this pull request
Feb 23, 2026
…law#24133) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4bb10ca Co-authored-by: Glucksberg <80581902+Glucksberg@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
jaydiamond42
pushed a commit
to jaydiamond42/bloomtbot
that referenced
this pull request
Feb 23, 2026
…law#24133) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4bb10ca Co-authored-by: Glucksberg <80581902+Glucksberg@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
carlosrivera
pushed a commit
to myascendai/meshiclaw
that referenced
this pull request
Feb 23, 2026
…law#24133) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4bb10ca Co-authored-by: Glucksberg <80581902+Glucksberg@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
gabrielkoo
pushed a commit
to gabrielkoo/openclaw
that referenced
this pull request
Feb 23, 2026
…law#24133) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4bb10ca Co-authored-by: Glucksberg <80581902+Glucksberg@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
mreedr
pushed a commit
to mreedr/openclaw-custom
that referenced
this pull request
Feb 24, 2026
…law#24133) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4bb10ca Co-authored-by: Glucksberg <80581902+Glucksberg@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
margulans
pushed a commit
to margulans/Neiron-AI-assistant
that referenced
this pull request
Feb 25, 2026
…law#24133) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4bb10ca Co-authored-by: Glucksberg <80581902+Glucksberg@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
brianleach
pushed a commit
to brianleach/openclaw
that referenced
this pull request
Feb 26, 2026
…law#24133) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4bb10ca Co-authored-by: Glucksberg <80581902+Glucksberg@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
mylukin
pushed a commit
to mylukin/openclaw
that referenced
this pull request
Feb 26, 2026
…law#24133) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4bb10ca Co-authored-by: Glucksberg <80581902+Glucksberg@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
r4jiv007
pushed a commit
to r4jiv007/openclaw
that referenced
this pull request
Feb 28, 2026
…law#24133) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4bb10ca Co-authored-by: Glucksberg <80581902+Glucksberg@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
6 tasks
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 1, 2026
…law#24133) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4bb10ca Co-authored-by: Glucksberg <80581902+Glucksberg@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras (cherry picked from commit 36400df) # Conflicts: # CHANGELOG.md # src/auto-reply/reply/commands.test.ts # src/auto-reply/reply/get-reply-inline-actions.skip-when-config-empty.test.ts
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 3, 2026
…law#24133) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4bb10ca Co-authored-by: Glucksberg <80581902+Glucksberg@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras (cherry picked from commit 36400df) # Conflicts: # CHANGELOG.md # src/auto-reply/reply/commands.test.ts # src/auto-reply/reply/get-reply-inline-actions.skip-when-config-empty.test.ts
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
…law#24133) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 4bb10ca Co-authored-by: Glucksberg <80581902+Glucksberg@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
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
/compactcommand was not passing theagentDirparameter when callingcompactEmbeddedPiSession(), causing it to ignore agent-specific authentication profilesagentDir?: stringtoHandleCommandsParamsinterface and threaded it throughhandleCommands()andcommands-compact.tsTest plan
Fixes #23812
🤖 Generated with Claude Code
Greptile Summary
Threaded
agentDirparameter through the/compactcommand flow to enable agent-specific authentication profiles during compaction. The change adds the optionalagentDirfield toHandleCommandsParams, passes it fromhandleInlineActionstohandleCommands, and finally includes it when callingcompactEmbeddedPiSession()in the compact command handler.Confidence Score: 5/5
compactEmbeddedPiSession), it just wasn't being passed through. Type safety is maintained throughout, and the PR description indicates tests pass.Last reviewed commit: 4ae1e1a