Skip to content

feat(setting): add session list of terminal in browser. - #992

Open
Arielfoever wants to merge 10 commits into
sipeed:mainfrom
Arielfoever:feat/terminallist
Open

Arielfoever wants to merge 10 commits into
sipeed:mainfrom
Arielfoever:feat/terminallist

Conversation

@Arielfoever

Copy link
Copy Markdown
Contributor

No description provided.

Terminal is now blocked if recieved no heart packet in 1 sec.

Signed-off-by: Ariel Yu <ariel@sipeed.com>
@Arielfoever

Copy link
Copy Markdown
Contributor Author
图片

@Arielfoever
Arielfoever marked this pull request as ready for review November 18, 2026 06:13
e.g. 终端上一次响应于 2026年1月1日17:11:11(52秒前)

Signed-off-by: Ariel Yu <ariel@sipeed.com>
Signed-off-by: Ariel Yu <ariel@sipeed.com>

± Conflicts:
±	web/src/pages/terminal/index.tsx
e.g. 会话建立于 2026年1月1日 17:11:11(52 秒前)

Signed-off-by: Ariel Yu <ariel@sipeed.com>
…rminal sessions

keep the shell pty alive after the page disconnects so sessions stay detached instead of being killed, and allow a new page to reattach via a `session` query param

replay up to 256 KiB of buffered terminal output when a page reattaches to a detached session

automatically close sessions that remain detached for 10 minutes to avoid abandoned shells
- take over a session from a previous page: attaching closes the old websocket
- kill the shell instead of leaving it detached when the auth middleware revokes the connection
- return 404 when reconnecting to a session that no longer exists
- report the `attached` state of each session in the session list API and types
- add attached/detached status indicator and reconnect button (with takeover confirmation when attached) to the settings terminal manager
- show a "session unavailable" overlay with an "open new terminal" action when the target session has ended
- skip running picocom again when reattaching to an existing serial session
- add i18n strings for reconnect, attached/detached and session-unavailable messages in en, zh and zh_tw

Signed-off-by: Ariel Yu <ariel@sipeed.com>
Signed-off-by: Ariel Yu <ariel@sipeed.com>
Signed-off-by: Ariel Yu <ariel@sipeed.com>
Open an existed terminal session page, the old terminal will be closed with
a pop up notification.

Signed-off-by: Ariel Yu <ariel@sipeed.com>
Stop an existed terminal session in setting page, the terminal will be closed
with a pop up notification.

Signed-off-by: Ariel Yu <ariel@sipeed.com>
The old terminal will get a pop up notification if websocket closed unexpectly.

Signed-off-by: Ariel Yu <ariel@sipeed.com>
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.

1 participant