hyperhive/frontend/packages/agent/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 259b236ad1 agent: 🔓 logout in overflow menu + /logout slash command (#576 frontend half)
Pairs with damocles PR #582 (POST /api/logout backend on the
per-agent web UI). Three additions to the agent's app.js:

- New `postLogout` helper next to postCancelTurn / postCompact /
  postNewSession. Same postSimple shape.
- New entry in SLASH_COMMANDS so /help lists /logout.
- New /logout case in handleSlashCommand with window.confirm.
- New '🔓 logout' item in populateOverflowMenu's overflow popover,
  mirroring the new-session item's pattern (confirm before POST,
  disable button while in-flight, closeOverflowMenu before fire).

Confirm dialog spells out the consequences (SIGINT, creds wiped,
park in needs-login) so the operator doesn't accidentally drop a
production session. Tooltip on the menu item links the action back
to the credentials directory + post-logout state.

Wire-level: POST /api/logout, no body. Backend returns 200 with a
text body describing the wipe outcome — postSimple ignores it
(success → no terminal note; failure → red turn-end-fail row).
2026-05-29 16:56:47 +02:00
..
agent.css agent: "mark all read" button on the inbox flyout (#559 frontend half) 2026-05-29 13:14:06 +02:00
app.js agent: 🔓 logout in overflow menu + /logout slash command (#576 frontend half) 2026-05-29 16:56:47 +02:00
index.html agent: redesign terminal header — full-height icon, two-row main, overflow menu (#394) 2026-05-25 01:29:39 +02:00
screen.html frontend: add npm workspace scaffold under frontend/ 2026-05-23 14:51:01 +02:00
stats.html frontend: add npm workspace scaffold under frontend/ 2026-05-23 14:51:01 +02:00
stats.js frontend: add npm workspace scaffold under frontend/ 2026-05-23 14:51:01 +02:00