HERMES-GIELIE/static
nesquena-hermes 15fde033c3
fix: wire up CLI session display in sidebar (3 frontend gaps) (#58)
The backend CLI session bridge (PR #56) was complete but the frontend
never connected to it:

1. css class never applied -- el.className never included 'cli-session'
   so the gold border and 'cli' badge CSS was dead code. Fixed: append
   ' cli-session' when s.is_cli_session is true.

2. import never triggered -- click handler always called loadSession()
   directly, never POST /api/session/import_cli. Fixed: for CLI sessions,
   call import_cli first (idempotent -- safe to call on every click),
   then fall through to loadSession() which now finds the imported copy.

3. profile filter silently hid CLI sessions -- filter required
   s.profile === S.activeProfile, but CLI sessions may have profile=null
   if the SQLite DB has no profile column. Fixed: CLI sessions always
   pass the filter (s.is_cli_session || s.profile === S.activeProfile).

Co-authored-by: Nathan Esquenazi <nesquena@gmail.com>
2026-04-03 20:55:29 -07:00
..
boot.js feat: token usage toggle (setting + /usage command) + timestamp fixes 2026-04-03 19:11:36 -07:00
commands.js feat: token usage toggle (setting + /usage command) + timestamp fixes 2026-04-03 19:11:36 -07:00
index.html merge: resolve conflicts with master (v0.29), bump to v0.30 2026-04-03 20:42:11 -07:00
messages.js feat: token usage toggle (setting + /usage command) + timestamp fixes 2026-04-03 19:11:36 -07:00
panels.js feat: token usage toggle (setting + /usage command) + timestamp fixes 2026-04-03 19:11:36 -07:00
sessions.js fix: wire up CLI session display in sidebar (3 frontend gaps) (#58) 2026-04-03 20:55:29 -07:00
style.css feat: CLI session bridge - read CLI sessions from agent SQLite store 2026-04-03 19:54:54 -07:00
ui.js feat: token usage toggle (setting + /usage command) + timestamp fixes 2026-04-03 19:11:36 -07:00
workspace.js feat: persist workspace tree expanded state across refreshes 2026-04-03 19:11:36 -07:00