mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[PR #292] [MERGED] fix(cli): reliably fall back to sh when bash is unavailable #325
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#325
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/kvcache-ai/AgentENV/pull/292
Author: @zlzGithub-0801
Created: 9/15/2026
Status: ✅ Merged
Merged: 9/16/2026
Merged by: @yingdi-shan
Base:
main← Head:fix/connect-shell-fallback📝 Commits (1)
02417b4fix(cli): reliably fall back to sh when bash is unavailable📊 Changes
1 file changed (+22 additions, -33 deletions)
View changed files
📝
crates/aenv/src/commands/connect.rs(+22 -33)📄 Description
What
Replace the CLI-side shell retry loop in
aenv connectwith a single BusyBox launch that picks the shell inside the guest.Why
aenv start/aenv cnused to try/bin/bashthen/bin/shfrom the CLI side,envd starts a wrapper process (
nice) and returns its PID immediately, so the CLI treats bash as successfully started. Only afterwards doesnicediscover the image has no bash:Because the CLI already accepted the PID, it never falls through to
/bin/sh. On scratch-based images the session is dead on arrival.Related issue
N/A
Scope and non-goals
In scope: interactive shell selection in
crates/aenv/src/commands/connect.rs.Not in scope: AgentENV behavior.
Design and behavior changes
Always launch the BusyBox binary shipped on the tools disk, and let it choose the shell.
Compatibility and operations
Validation
make fmtmake clippymake test-unitmake -C services test(required whenservices/changes)maketargetRisks and reviewer notes
N/A
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.