mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix(pi): keep archived sessions visible (#1297)
This commit is contained in:
@@ -174,7 +174,8 @@ describe('updateSessionMetadata: protocol resume token preservation', () => {
|
||||
['opencodeSessionId', 'opencode-thread-x'],
|
||||
['grokSessionId', 'grok-thread-x'],
|
||||
['cursorSessionId', 'cursor-thread-x'],
|
||||
['kimiSessionId', 'kimi-thread-x']
|
||||
['kimiSessionId', 'kimi-thread-x'],
|
||||
['piSessionId', 'pi-thread-x']
|
||||
])('preserves %s across an archive metadata replacement', (field, value) => {
|
||||
const store = makeStore()
|
||||
const session = store.sessions.getOrCreateSession(
|
||||
|
||||
@@ -60,7 +60,8 @@ const SIMPLE_RESUME_TOKENS = [
|
||||
'opencodeSessionId',
|
||||
'grokSessionId',
|
||||
'cursorSessionId',
|
||||
'kimiSessionId'
|
||||
'kimiSessionId',
|
||||
'piSessionId'
|
||||
] as const
|
||||
|
||||
function isPlainObject(value: unknown): value is Record<string, unknown> {
|
||||
|
||||
Reference in New Issue
Block a user