Skip to content

fix: pass agentDir to /compact command for agent-specific auth#24133

Merged
gumadeiras merged 3 commits intoopenclaw:mainfrom
Glucksberg:fix/issue-23812
Feb 23, 2026
Merged

fix: pass agentDir to /compact command for agent-specific auth#24133
gumadeiras merged 3 commits intoopenclaw:mainfrom
Glucksberg:fix/issue-23812

Conversation

@Glucksberg
Copy link
Contributor

@Glucksberg Glucksberg commented Feb 23, 2026

Summary

  • The /compact command was not passing the agentDir parameter when calling compactEmbeddedPiSession(), causing it to ignore agent-specific authentication profiles
  • Added agentDir?: string to HandleCommandsParams interface and threaded it through handleCommands() and commands-compact.ts

Test plan

  • TypeScript compilation passes
  • All 40 command tests pass
  • Verified agentDir flows from inline actions through to compaction call

Fixes #23812

🤖 Generated with Claude Code

Greptile Summary

Threaded agentDir parameter through the /compact command flow to enable agent-specific authentication profiles during compaction. The change adds the optional agentDir field to HandleCommandsParams, passes it from handleInlineActions to handleCommands, and finally includes it when calling compactEmbeddedPiSession() in the compact command handler.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • The change is a straightforward parameter threading fix with minimal code surface area - adding an optional field to an interface and passing it through two function calls. The parameter was already being used correctly in the target function (compactEmbeddedPiSession), it just wasn't being passed through. Type safety is maintained throughout, and the PR description indicates tests pass.
  • No files require special attention

Last reviewed commit: 4ae1e1a

Glucksberg and others added 3 commits February 23, 2026 02:32
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>
@gumadeiras gumadeiras merged commit 36400df into openclaw:main Feb 23, 2026
13 checks passed
@gumadeiras
Copy link
Member

Merged via squash.

Thanks @Glucksberg!

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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: /compact command ignores agent-specific auth (missing agentDir param)

2 participants