Otter-shell · #67
otter-term swaps an edited entry with the content that's been deleted from it
! Please fill in this part
Bug report
Steps to reproduce
- open otter term and execute a command or simply any form of text
- press up to bring the that last thing you input and delete part of it
- close terminal while still focusing it (if you focus any other entry or hit down to go back to a blank spot it wont do)
- reopen the terminal and press up again
- behold how the piece that you trimmed has now substituted the entry entirely
Expected behavior
in other terminals like foot the entry would remain edited but it would be the part you left in on the history
Actual behavior
the deleted part gets saved in its place
Environment
WM: mango 0.16.1(3cb7cb2d) Env: otter-bar/pika,now 0.11.88-101pika1 Model: HP laptop 15-fc0015la (15-fc0xxx) MoBo: 8B30 CPU: AMD Ryzen 7 7730U with Radeon Graphics RAM: 24.49 GB DDR4 @ 3200MT/s kernel: 7.1.8-pikaos
Discussion
Sign in with Discord to comment.
PikaOS Projects
Fixed and pushed in otter-term commit
8b84816(fix(term): let shells finish hangup cleanup). Root cause: PTY shutdown closed the controlling terminal and immediately sent SIGTERM, interrupting shell hangup cleanup/history finalization. Otter Term now gives the shell a bounded 50 ms grace period after hangup, then keeps the existing SIGTERM fallback. Added a regression test that failed under the old shutdown order and verifies hangup cleanup completes. Verified withzig build -Doptimize=ReleaseFast test(158/158) andzig build -Doptimize=ReleaseFast.