The terminal session id lived only in memory, so the first time the panel opened after a launch it always created another PTY. The old shell stayed on the server (unattached shells live for half an hour) but the client could no longer find it. The id is now remembered per connection and directory. On first open the panel lists /api/terminal/sessions?cwd=<dir> and attaches to the remembered session while the server still has it, showing its replayed history. Without that id it adopts the newest running session of the directory, and only when the directory has nothing does it create one. An explicit "close terminal" forgets the id and forces a fresh shell, and a fatal SESSION_NOT_FOUND clears it and recovers, so a server restart cannot leave a dead panel. The panel is still one terminal per project, not a tab strip. 0.4.2 (402).
29 lines
522 B
YAML
29 lines
522 B
YAML
name: openchamber
|
|
description: "A lightweight OpenChamber client for phones."
|
|
publish_to: 'none'
|
|
|
|
version: 0.4.2+402
|
|
|
|
environment:
|
|
sdk: ^3.14.0
|
|
|
|
dependencies:
|
|
flutter:
|
|
sdk: flutter
|
|
cupertino_icons: ^1.0.8
|
|
shared_preferences: ^2.3.0
|
|
flutter_secure_storage: ^11.2.0
|
|
file_picker: ^13.0.0
|
|
gpt_markdown: ^1.4.0
|
|
socks5_proxy: ^2.1.2
|
|
xterm: ^4.0.0
|
|
flutter_slidable: ^5.2.0
|
|
archive: ^3.6.1
|
|
dev_dependencies:
|
|
flutter_test:
|
|
sdk: flutter
|
|
flutter_lints: ^6.0.0
|
|
|
|
flutter:
|
|
uses-material-design: true
|