Repository navigation
Description
Describe the Bug
On an intel macbook running macos Sequoia (15.7.7), using macport's bash version 5.3.15 inside wezterm.
After updating to flyline 1.5.0, I noticed that each shell left alone for a while was abruptly closing with no mesasge / notice / error.
I verified this happens precisely after 30 seconds of inactivity, and looking at the code I found that IDLE_TIMEOUT matches that duration.
So I think that when going to change the fps after the timeout expires, something is crashing the current bash session.
This is definitely NOT happening with the previous version, as I have multiple tabs still running bash sessions with the previous flyline version, and they are remaining open after days of inactivity.
If you look at the attached log, you can see the last message before going idle is the Resizing inline viewport... message at 2026-08-07T11:34:48.506990.
Then after exactly 30 seconds, at 2026-08-07T11:35:18.516861, there's the message src/app/mod.rs:757: Terminal input problem, setting mode to exiting with EOF: Invalid argument (os error 22)
Environment & Version Information
flyline 1.5.0
git hash: d437a50
build mode: release
build datetime: 2026-08-03T22:28:24Z
build target: x86_64-apple-darwin
rustc version: rustc 1.97.1 (8bab26f4f 2026-07-14)
Running in: Bash 5.3.15(1)-release
shell: /opt/local/bin/bash
Running in: xterm-256color
program: WezTerm
program version: 20240203-110809-5046fc22
locale: en_US.UTF-8 (LC_ALL: en_US.UTF-8, LC_CTYPE: unknown)
Running in: macOS (kernel 24.6.0 x86_64)
system linker: @(#)PROGRAM:ld PROJECT:ld-1230.1
dynamic linker: dyld (tied to macOS 15.7.7 (Build 24G720))
Running on: x86_64 architecture
Running in: a simulation
Debug Logs (Optional / If Necessary)
Click to expand logs
2026-08-07T11:34:47.008864 [INFO] (pid=67775) src/cli.rs:120: Completing flyline args after: "flyline log set-level "
2026-08-07T11:34:47.009149 [INFO] (pid=67775) src/cli.rs:182: Completing command: cursor_byte: 27, parsed args: ["flyline", "log", "set-level", "debug"], index: 3,
2026-08-07T11:34:47.010075 [INFO] (pid=67775) src/cli.rs:220: [
CompletionCandidate {
value: "debug",
help: None,
id: None,
tag: Some(
StyledStr(
"<LEVEL>",
),
),
display_order: None,
hidden: false,
},
]
2026-08-07T11:34:47.010161 [INFO] (pid=67775) src/app/tab_completion.rs:1287: Child process completed
2026-08-07T11:34:47.010934 [INFO] (pid=67103) src/app/tab_completion.rs:1352: Tab completion process (pid 67775) reaped in reader thread
2026-08-07T11:34:48.183706 [INFO] (pid=67103) src/app/mod.rs:800: Exiting with command: flyline log set-level debug
2026-08-07T11:34:48.183904 [INFO] (pid=67103) src/lib.rs:226: ---------------------- App finished ------------------------
2026-08-07T11:34:48.263862 [INFO] (pid=67103) src/cli.rs:1361: Log level set to Debug
2026-08-07T11:34:48.497853 [INFO] (pid=67103) src/lib.rs:163: ---------------------- Starting app ------------------------
2026-08-07T11:34:48.498427 [INFO] (pid=67103) src/bash_funcs.rs:447: Getting cached reserved words
2026-08-07T11:34:48.498584 [INFO] (pid=67103) src/app/mod.rs:404: Warming path cache finished in 245.942µs
2026-08-07T11:34:48.502352 [DEBUG] (pid=67103) src/app/mod.rs:418: Initial cursor position: Position { x: 0, y: 5 }
2026-08-07T11:34:48.502554 [INFO] (pid=67103) src/app/mod.rs:396: Warming bash caches finished in 4.265582ms
2026-08-07T11:34:48.506033 [DEBUG] (pid=67103) src/prompt_manager.rs:1410: Animation count: 0
2026-08-07T11:34:48.506080 [DEBUG] (pid=67103) src/prompt_manager.rs:1428: Widget count: 5
2026-08-07T11:34:48.506103 [DEBUG] (pid=67103) src/prompt_manager.rs:1431: CWD for prompt detection: "/Users/abigagli/develop/simtel/GUARDMETRIX/NEXTGEN/TAG/gmtng-mg24", HOME: Some("/Users/abigagli")
2026-08-07T11:34:48.506624 [DEBUG] (pid=67103) src/prompt_manager.rs:1464: Parsed RPS1: [[Static(Span::from(" ")), WidgetCopyBuffer { text: [TaggedSpan { span: Span::from("[copy]"), tag: Constant(PromptCopyBufferWidget) }] }]]
2026-08-07T11:34:48.506822 [DEBUG] (pid=67103) src/history.rs:88: Loaded 500 bash history entries
2026-08-07T11:34:48.506842 [DEBUG] (pid=67103) src/history.rs:90: bash_entries => HistoryEntry { timestamp: Some(1786095288), index: 499, command: "flyline log set-level debug", raw_output: None, syntax_highlighted: OnceCell(<uninit>) }
2026-08-07T11:34:48.506861 [DEBUG] (pid=67103) src/history.rs:90: bash_entries => HistoryEntry { timestamp: Some(1786095274), index: 498, command: "flyline log stream /tmp/flyline.log", raw_output: None, syntax_highlighted: OnceCell(<uninit>) }
2026-08-07T11:34:48.506875 [DEBUG] (pid=67103) src/history.rs:90: bash_entries => HistoryEntry { timestamp: Some(1786095243), index: 497, command: "flyline log --help", raw_output: None, syntax_highlighted: OnceCell(<uninit>) }
2026-08-07T11:34:48.506990 [INFO] (pid=67103) src/app/mod.rs:619: Resizing inline viewport from 0 to 66 rows
2026-08-07T11:35:18.516861 [INFO] (pid=67103) src/app/mod.rs:757: Terminal input problem, setting mode to exiting with EOF: Invalid argument (os error 22)
2026-08-07T11:35:18.517223 [DEBUG] (pid=67103) src/app/mod.rs:223: Final state: EOF
2026-08-07T11:35:18.517326 [INFO] (pid=67103) src/lib.rs:221: App signaled EOF
Steps to Reproduce
- open a new shell
- leave it idle for > 30 seconds
- the shell closes
Activity
HalFrgrd commentedon Aug 9, 2026
Thanks for bringing this up! Turns out there was a bug in a dependency of a dependency. I've started a PR to fix it in bytecodealliance/rustix#1655. In the meantime, I've fixed termina to workaround rustix's bug. this should be fixed in the next release.