Skip to content

test(android): reproduce abrupt alt-screen scrollback loss (issue 2) - #27

Merged
kiranscript merged 5 commits into
mainfrom
test/issue-2-c
Aug 3, 2026
Merged

kiranscript merged 5 commits into
mainfrom
test/issue-2-c

Conversation

@kiranscript

@kiranscript kiranscript commented Jul 31, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fixes issue 02: when an alternate-screen TUI exits without \x1b[?1049l, the Mobily shell prompt boundary now leaves the alternate screen so subsequent output accumulates normal-buffer scrollback and history swipes work again.

Changes

  • applyTerminalMouseControls tracks DECSET/DECRST 47/1047/1049 and injects \x1b[?1049l when [mobily] arrives while still on the alternate screen (including chunk-straddling prompts)
  • Regenerated xtermAssets.generated.ts helper bundle
  • Converted issue 2 Playwright / vitest cases into permanent regressions

Test results

Command Result
Android unit 86 green
typecheck / lint green
Issue 2 Playwright 3/3
Full Android browser 28 passed, 1 pre-existing OpenCode snapshot failure (AGENTS.md)
Open in Web Open in Cursor 

Pin Playwright and headless xterm characterizations that show a Mobily
shell prompt arriving without DECRST 1049 leaves xterm on the alternate
buffer with no scrollback, plus pending-fix regressions for recovery.

Co-authored-by: kiran kumar <kirank55@users.noreply.github.com>
@vercel

vercel Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mobily-website Ready Ready Preview Jul 31, 2026 6:02pm

cursoragent and others added 2 commits July 31, 2026 17:52
…sue-2-c

Capture vitest/Playwright results confirming abrupt alt-screen exit leaves
no scrollback, with orderly exit remaining green.

Co-authored-by: kiran kumar <kirank55@users.noreply.github.com>
Record the 29/30 Playwright run and the green Android unit suite on
test/issue-2-c.

Co-authored-by: kiran kumar <kirank55@users.noreply.github.com>
Track DECSET 47/1047/1049 and inject CSI ?1049l at the Mobily shell
prompt boundary when an abrupt TUI exit omitted the leave sequence, so
shell output accumulates normal-buffer scrollback again.

Co-authored-by: kiran kumar <kirank55@users.noreply.github.com>
Update the ticket and test report after injecting CSI ?1049l at the Mobily
prompt boundary; record green unit/Playwright results.

Co-authored-by: kiran kumar <kirank55@users.noreply.github.com>
@kiranscript
kiranscript marked this pull request as ready for review August 3, 2026 18:13
@cursor

cursor Bot commented Aug 3, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@kiranscript
kiranscript merged commit 3a9b30d into main Aug 3, 2026
5 of 6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 3127b128 Deployed Jul 31, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants