Skip to content

Failed to start when old sessions are inaccessible #7283

@sluongng

Description

@sluongng

What version of Codex is running?

0.63.0

What subscription do you have?

plus

Which model were you using?

No response

What platform is your computer?

No response

What issue are you seeing?

> codex
internal error; agent loop died unexpectedly
                                            

What steps can reproduce the bug?

After several minutes of debugging, it seems like my $HOME/.codex/sessions has some sessions that were run as root with

> sudo -i
> HOME=/home/<old-user> codex

which causes the session files to be under root ownership.

Using sudo chown -R <old-user> $HOME/.codex/ fixed it.

What is the expected behavior?

A better error message indicating the reason for failure would be nice.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions