Skip to content

[Bug]: container-use terminal fails if the environment has a secret configured #283

@kalin-sa

Description

@kalin-sa

What happened?

$ cu config secret set TEST "env://TEST"

Ask agent to create a new env.

$ cu list
ID             TITLE                                  CREATED         UPDATED
humane-spider  Setup environment for sa-go-creatives  19 seconds ago  19 seconds ago

cu terminal humane-spider

I get the following error:

● Container.withNewFile(
  ┆ path: "/cu/rc.sh"
  ┆ contents: "[ -f ~/.bashrc ] && . ~/.bashrc; \"/bin/bash\" --version | head -4; export PS1=\"\\033[33mcu\\033[0m \\033[02m\\$(pwd | sed \\\"s|^\\$HOME|~|\\\")\\033[0m \\$ \"\n"
  ): Container! 0.0s
▼ .terminal(cmd: ["/bin/bash", "--rcfile", "/cu/rc.sh", "-i"], experimentalPrivilegedNesting: true): Container! 0.0s ERROR
! failed to start service: start container: secret argon2:e0xSOGVG29IQw071H4NASqfVey5lo6QrFHp+MLcGkY0: not found
╰─✘ exec /bin/bash --rcfile /cu/rc.sh -i 0.0s ERROR
  ! start container: secret argon2:e0xSOGVG29IQw071H4NASqfVey5lo6QrFHp+MLcGkY0: not found

Version

container-use version 0.4.1
commit: 71346865565c2a0d9dd92350ed30c86ed73e43b9
built: 2025-08-01T18:32:52Z

Logs


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions