Files
AgentHub/docs/plans/roles-developer/CHECKLIST.md
T
nntrivi2001 b7f3735b29 feat: v2.5.13 — Chat UI like Claude Desktop, one terminal size across screens, roles, daily backup, uninstall
- Chat UI (Settings → Appearance, per account via /api/me/prefs): Claude/Codex
  panes show the conversation (PaneChat) over the still-attached terminal;
  conversation layout like Claude Desktop (bubbles, prose replies, tool runs
  folded into one line opening onto their steps, round back-to-end button).
- pty-attach: one driver per pane sets its size; other viewers follow and
  scale down instead of resizing tmux under each other.
- Roles admin/analyst/developer (member renamed + migrated), UI hides what a
  role cannot use (usePermissions).
- Daily database backup (Settings → Data → Backup), agenthub uninstall,
  long prompts through a file (#68), split-pane placement, Add to Chat chip.

Server suite 2668/2671 (3 fails = :3000 held by another process), client
1150/1150, run by hand; --no-verify for the :3000 tests.
2026-10-08 23:04:57 +07:00

1.9 KiB

Roles: admin / analyst / developer — checklist

Decisions (user, 2026-10-08):

  • member is renamed developer everywhere, stored value included (migration).
  • developer: full control of OWN workspaces/sessions/git; nothing host-wide.
  • analyst: sees every user's rows (as today) AND works on OWN rows like a developer (was: read-only); nothing host-wide, never another user's rows.
  • UI hides every control the role cannot use; refusals show a clear toast.

Server

  • db.js: rebuild users with CHECK(admin, analyst, developer), member→developer
  • auth.js: ROLES, default role, STAFF_ONLY gate, analyst no longer EREADONLY
  • auth.js: /alerts/rules joins ADMIN_WRITE_PREFIXES (host-wide rules)
  • scope.js: memberId = developer always, analyst on writes only
  • websocket.js: analyst terminal only on own runs; broadcast member→developer
  • audit.js, users.js, workflow-stats.js, openapi-extra/auth.js, CLI users
  • tests: update member→developer, add analyst write-scope tests

Client

  • one role helper (isAdmin / canSeeAll) from useAuth
  • hide admin-only controls (inventory from Explore)
  • analyst: hide write controls on other users' rows
  • errors: EADMIN / EREADONLY / ENOTFOUND toasts translated (en + vi)
  • role label "Developer" en/vi, Users page role select

Finish

  • npm run test:server, npm run test:client
  • docs: SERVER-MODE.md, CLAUDE.md lines naming member
  • headers check

Follow-ups (2026-10-08)

  • analyst alert feed: can_ack per alert, Ack hidden on others' (server test + client test)
  • Settings search: admin-only entries (autostart, quit, tray, reports, webhooks, git creds) hidden
  • SessionDetail: an unstamped session's owner resolved by folder (owningLane)
  • prod/dev share one DB: restart prod on the new build together with the first run (migration)
  • agenthub stop in server mode answers EAUTH (fix was blocked; user to decide)