Skip to content

Fix Claude TUI blocking when docker is a Podman shim#61

Open
bbinet wants to merge 1 commit intofletchgqc:mainfrom
bbinet:fix/podman-shim-detection
Open

Fix Claude TUI blocking when docker is a Podman shim#61
bbinet wants to merge 1 commit intofletchgqc:mainfrom
bbinet:fix/podman-shim-detection

Conversation

@bbinet
Copy link

@bbinet bbinet commented Mar 4, 2026

Summary

Detect when docker is actually a Podman shim and use podman directly, ensuring --userns=keep-id is applied in rootless Podman environments.

Root cause

In rootless Podman, without --userns=keep-id, the container process has a different UID mapping than the TTY owner. The Ink framework (used by Claude Code's TUI) blocks on tcsetattr when it cannot control the TTY, causing the session to appear frozen.

When docker is a Podman shim (detectable via docker info | grep podman), agentbox was treating it as Docker and skipping the --userns=keep-id flag meant for Podman.

if so, use podman directly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant