Implement web session management with GUID-based sessions #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements automatic session management for the web interface, allowing each user to have their own isolated session with persistent state. The web UI has been simplified to provide a clean, full-screen terminal experience where connection and account management happens directly in the terminal, just like when running dikuclient in a real terminal.
Changes
Session Management
?id=<GUID>where GUID is a newly generated UUID.websessions/<GUID>Account & Connection Management in Terminal
--hostor--portflags)Simplified Full-Screen UI
Technical Implementation
github.com/google/uuiddependency for GUID generationinternal/web/server.goto handle session routing and validationinternal/web/websocket.goto auto-start TUI in session directoriesweb/static/files (HTML, CSS, JS) to remove connection UI.websessions/to.gitignoreto exclude session data from version controlScreenshot
The new full-screen terminal interface showing the account selection menu:
Users can now manage accounts and connections directly in the web terminal, with session state automatically preserved per-session.
Testing
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.