Skip to content

feat(console): unify management APIs and terminal session controls - #33

Merged
Coooolfan merged 4 commits into
mainfrom
feat/session-management-api
Sep 16, 2026
Merged

Coooolfan merged 4 commits into
mainfrom
feat/session-management-api

Conversation

@Coooolfan

Copy link
Copy Markdown
Owner

Summary

  • Reorganize management HTTP endpoints from /api/v1/console/* into resource-oriented paths: /auth/login, /auth/logout, /auth/session, /auth/password, /api-keys, /tokens, /accounts; admin account creation moves to POST /accounts. Legacy /api/v1/console/* routes stay registered as compatibility aliases.
  • Add owner-scoped terminal session management: GET /sessions (paginated), GET /sessions/:session_id, DELETE /sessions/:session_id, reporting worker binding, status (ready / unavailable / reconciling), lease expiry, last-used and created timestamps.
  • Persist created_at on terminal session routes so it survives rebinding and restart recovery; validate external session_id charset before scoping at task dispatch.
  • Update web dashboard clients to the new paths; refresh docs/API*.md, website docs (EN/zh-CN), and project READMEs.

Test plan

  • go test ./internal/httpapi ./internal/grpcserver — new coverage for session list/get/delete, scoped session ID parsing, and session_id validation
  • yarn vitest run in web/ — 69 tests pass with updated API paths

Copilot AI lite review requested due to automatic review settings September 15, 2026 10:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Coooolfan
Coooolfan merged commit a3caf67 into main Sep 16, 2026
9 checks passed
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.

2 participants