Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zellij run not work out of session #3010

Closed
chaopeng opened this issue Dec 15, 2023 · 3 comments
Closed

zellij run not work out of session #3010

chaopeng opened this issue Dec 15, 2023 · 3 comments

Comments

@chaopeng
Copy link

Basic information

zellij --version: v.0.39.2
uname -av or ver(Windows): Debian 6.5.6-1rodete4 x86_64 GNU/Linux

Further information

Reproduction steps:

  • zellij to create a new zellij session
  • ctrl-o d detach the session
  • zellij list-sessions find the session name
  • zellij --session [session-name] run -- echo hello
  • zellij attach [session-name]

Expect: zellij run a command inside the session with new pane
Actually: nothing in zellij

I also tried zellij run -f, still not luck. I somehow remember it works in previous version (maybe v0.39.1). But I did not verify.

Tried use run inside a session, it works.

@jlabbude
Copy link

jlabbude commented Aug 1, 2024

Been facing the same issue on v0.40.1, zellij run (and for instance all commands related to interacting with a detached session, such as zellij action and what not) seems to only work if you have an active session.

@gibfahn
Copy link

gibfahn commented Aug 1, 2024

Simple repro:

zellij delete-session --force test
zellij attach --create-background test
zellij --session test run --name one -- sleep 101
zellij --session test run --name two -- sleep 102
zellij --session test run --name three -- sleep 103
zellij --session test run --name four -- sleep 104
zellij attach test

Only shows the original pane and the first command run.

image

If you add --in-place to the first run command, you get:

image

So it looks like only the first run takes effect. If you attach then the run commands work as expected.

@gibfahn
Copy link

gibfahn commented Nov 6, 2024

I don't know why this was closed, filed a new issue for it: #3733

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants