417 Commits

Author SHA1 Message Date
GitHub Copilot 0086cf76b0 refactor: simplify _get_ws_url_from_request
Consolidate nested helper functions and reduce complexity:
- Inline header extraction with first_header helper
- Use rpartition for cleaner host:port splitting
- Simplify control flow with loop over header candidates

Addresses REFACTORING.md item about simplifying _get_ws_url_from_request.
2026-01-24 10:25:24 +00:00
GitHub Copilot 8ab263f1a7 refactor: consolidate WS dispatch into separate handler methods
Extract stdin, resize, and ping handling into dedicated methods
(_handle_stdin, _handle_resize, _handle_ping) for better code
organization and testability.

Addresses REFACTORING.md item about consolidating WS dispatch table.
2026-01-24 10:24:51 +00:00
GitHub Copilot 48247d35c7 refactor: use AsyncExitStack for aiohttp runner cleanup
Replace try/finally with contextlib.AsyncExitStack for cleaner
structured cleanup of the aiohttp runner. This ensures proper
resource cleanup even in complex shutdown scenarios.

Addresses REFACTORING.md item about TaskGroup/cleanup context.
2026-01-24 10:24:23 +00:00
GitHub Copilot f2996c2d9e refactor: narrow WebSocket exception handling
Replace bare Exception catch with specific exception types:
- json.JSONDecodeError for invalid JSON
- TypeError, KeyError, ValueError for malformed messages
- OSError for I/O errors

Addresses REFACTORING.md item about narrowing WebSocket error handling.
2026-01-24 10:24:00 +00:00
GitHub Copilot 33da0e335c fix: use pyte terminal emulator for screenshot rendering
Replaces simple carriage return handling with pyte terminal emulator
to properly interpret all ANSI escape sequences including cursor
positioning. This fixes the tmux status bar 'creeping up' issue in
screenshots.

Adds pyte dependency to pyproject.toml.

Resolves TODO item #2.
2026-01-24 10:23:31 +00:00
GitHub Copilot c873ed2b2e fix: set tab title to container/app name
Updates the HTML page title to display the app name instead of a
generic 'Textual Web Terminal' title. Resolves TODO item #1.
2026-01-24 10:20:44 +00:00
GitHub Copilot d03f32bf69 Improve local_server and terminal_session coverage 2026-01-22 14:09:34 +00:00
GitHub Copilot 0cfb3b0a2f Include app/terminal/exit modules in coverage 2026-01-22 13:49:50 +00:00
GitHub Copilot 8f252adc27 Increase local_server test coverage 2026-01-22 13:40:59 +00:00
GitHub Copilot 557eafc163 Enforce monospace in screenshots 2026-01-22 13:02:28 +00:00
GitHub Copilot f6d986fb8f Only re-render screenshots on activity 2026-01-22 12:51:20 +00:00
GitHub Copilot 36b974287d Add screenshot backoff 2026-01-22 08:04:49 +00:00
GitHub Copilot 06a44f530a Stabilize screenshot rendering 2026-01-22 07:59:56 +00:00
GitHub Copilot f4f944b391 Bump version to 0.1.10 2026-01-22 00:38:23 +00:00
GitHub Copilot c72722191b Match textual-serve background 2026-01-22 00:37:59 +00:00
GitHub Copilot 20d33a97f8 Fix terminal font fallback 2026-01-22 00:34:11 +00:00
Rui Carmo a0e31d43fd merge 2026-01-21 23:53:57 +00:00