Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
91e7b34
fix(cli): reset terminal state on disconnect
onutc Jan 23, 2026
4a4f347
fix(cli): restore terminal on exit
onutc Jan 23, 2026
8311735
fix(cli): reset tty via /dev/tty
onutc Jan 23, 2026
3271e36
fix(cli): disable modifyOtherKeys on reset
onutc Jan 23, 2026
546700e
fix(cli): add tty watchdog reset
onutc Jan 23, 2026
9746e2b
fix(cli): add soft terminal reset
onutc Jan 23, 2026
46b0d36
fix(cli): keep tty watchdog in session
onutc Jan 23, 2026
f827f42
fix(cli): harden tty reset watchdog
onutc Jan 23, 2026
e7bb02d
fix(cli): restore tty state on terminal exit
onutc Jan 23, 2026
5d931df
fix(cli): hard reset tty after crash
onutc Jan 23, 2026
f0150be
fix(cli): resolve tty path for watchdog
onutc Jan 23, 2026
bdcca91
fix(cli): keep tty fd for crash resets
onutc Jan 23, 2026
e0a29ca
fix(cli): make watchdog robust for kitty mode
onutc Jan 23, 2026
cb6197a
fix(cli): restore tty state via real device
onutc Jan 23, 2026
438a265
fix(cli): show restore banner after crash
onutc Jan 23, 2026
02fecc3
fix(cli): force kitty enhancements off
onutc Jan 23, 2026
cfe9897
refactor(cli): organize tty handling
onutc Jan 23, 2026
5400751
test(cli): add terminal reset coverage
onutc Jan 24, 2026
edddf7d
fix(cli): drop missing node-pty types
onutc Jan 24, 2026
8e5194b
test(cli): stabilize pty test
onutc Jan 24, 2026
257599f
test(cli): skip pty test when spawn fails
onutc Jan 24, 2026
e97c9b4
ci(cli): add workflow for tests
onutc Jan 24, 2026
5894922
fix(cli): clean watchdog banner and pty gate
onutc Jan 24, 2026
849aa0d
fix(cli): preserve tty state and reset output
onutc Jan 24, 2026
5fdd260
fix(ci): align pnpm cache and tty modes
onutc Jan 24, 2026
273fb72
fix(cli): cancel watchdog on clean exit
onutc Jan 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/cli-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: cli-tests

on:
pull_request:
paths:
- "cli/**"
push:
branches:
- main
paths:
- "cli/**"

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: cli
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: "10.28.0"
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
cache-dependency-path: "cli/pnpm-lock.yaml"

- name: Install
run: pnpm install

- name: Test
env:
SPRITZ_PTY_TEST: "0"
run: pnpm test
4 changes: 3 additions & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
"scripts": {
"build": "tsc -p tsconfig.json",
"start": "node --enable-source-maps dist/index.js",
"dev": "tsx src/index.ts"
"dev": "tsx src/index.ts",
"test": "node --test --import tsx"
},
"dependencies": {
"ws": "^8.18.0"
},
"devDependencies": {
"node-pty": "^1.0.0",
"tsx": "^4.19.2",
"typescript": "^5.6.3"
}
Expand Down
15 changes: 15 additions & 0 deletions cli/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading