feat(web-ui): add pinned sessions and live monitor in Chat (#118)
* feat: add single-page live session monitor and chat pinning * fix: restore full test green after main merge * fix: use Array.from instead of Set spread for ts-node compatibility [...new Set()] requires downlevelIteration which isn't enabled in ts-node dev mode, causing sonic-boom crash on startup. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: ekko <fqsy1416@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -72,12 +72,21 @@ describe('Profiles Store', () => {
|
||||
{ name: 'default', active: true, model: 'gpt-4', gateway: 'running', alias: '' },
|
||||
])
|
||||
|
||||
window.localStorage.setItem('hermes_sessions_cache_v1_test', '[]')
|
||||
window.localStorage.setItem('hermes_session_msgs_v1_test_session-1', '[]')
|
||||
window.localStorage.setItem('hermes_in_flight_v1_test_session-1', '{}')
|
||||
window.localStorage.setItem('hermes_active_session_test', 'session-1')
|
||||
window.localStorage.setItem('hermes_session_pins_v1_test', '[]')
|
||||
window.localStorage.setItem('hermes_human_only_v1_test', 'false')
|
||||
|
||||
const store = useProfilesStore()
|
||||
store.detailMap['test'] = { name: 'test', path: '/tmp/test', model: '', provider: '', gateway: '', skills: 0, hasEnv: false, hasSoulMd: false }
|
||||
|
||||
await store.deleteProfile('test')
|
||||
|
||||
expect(store.detailMap['test']).toBeUndefined()
|
||||
expect(window.localStorage.getItem('hermes_session_pins_v1_test')).toBeNull()
|
||||
expect(window.localStorage.getItem('hermes_human_only_v1_test')).toBeNull()
|
||||
})
|
||||
|
||||
it('fetchProfileDetail uses cache', async () => {
|
||||
|
||||
Reference in New Issue
Block a user