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

update-status stops being called after exiting from shell in the last pane of a workspace #6330

Open
caenrique opened this issue Oct 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@caenrique
Copy link

What Operating System(s) are you seeing this problem on?

macOS

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

20241015-083151-9ddca7bd

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

The update-status event callback doesn't get called after closing a workspace. I'm using this to display the current workspace in the right status of the tabline, as well as other things, but this is making it freeze, displaying wrong information

To Reproduce

Steps:

  1. Create a new workspace
  2. run exit command on the shell

Configuration

local wezterm = require("wezterm")

local config = wezterm.config_builder()

wezterm.on("update-status", function(window, _)
wezterm.log_info("executing update-status")
window:set_right_status(wezterm.format({
{ Text = " " .. window:active_workspace() .. " " },
}))
end)

return config

Expected Behavior

  • log line executing update-status should continue to be logged
  • right status should be updated to display default again

Logs

No response

Anything else?

I'm able to reproduce this behaviour consistently as long as I only do the listed steps. If I do something else in between I get mixed results: sometimes it works as expected, sometimes it freezes the right-status.

@caenrique caenrique added the bug Something isn't working label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant