|
@@ -33,6 +33,7 @@ describe('dsh-tui-demo app', () => {
|
|
|
persistenceRoot: '/tmp/tui-sessions',
|
|
persistenceRoot: '/tmp/tui-sessions',
|
|
|
persistenceCompression: 'none',
|
|
persistenceCompression: 'none',
|
|
|
welcome: 'TUI ready',
|
|
welcome: 'TUI ready',
|
|
|
|
|
+ resumeCommand: 'dsh --resume {session}',
|
|
|
ui: { color: false, maxToolOutputLines: 3 },
|
|
ui: { color: false, maxToolOutputLines: 3 },
|
|
|
skills: { tool: { catalogDescriptionMaxLength: 8 } },
|
|
skills: { tool: { catalogDescriptionMaxLength: 8 } },
|
|
|
toolBash: { enableRunInBackground: false },
|
|
toolBash: { enableRunInBackground: false },
|
|
@@ -52,7 +53,12 @@ describe('dsh-tui-demo app', () => {
|
|
|
expect(calls[0]?.config).toBeUndefined()
|
|
expect(calls[0]?.config).toBeUndefined()
|
|
|
expect(calls[2]?.config).toEqual({ root: '/tmp/tui-sessions', compression: 'none' })
|
|
expect(calls[2]?.config).toEqual({ root: '/tmp/tui-sessions', compression: 'none' })
|
|
|
const tuiConfig = calls[4]?.config as { sessionId: string }
|
|
const tuiConfig = calls[4]?.config as { sessionId: string }
|
|
|
- expect(tuiConfig).toMatchObject({ welcome: 'TUI ready', color: false, maxToolOutputLines: 3 })
|
|
|
|
|
|
|
+ expect(tuiConfig).toMatchObject({
|
|
|
|
|
+ welcome: 'TUI ready',
|
|
|
|
|
+ resumeCommand: 'dsh --resume {session}',
|
|
|
|
|
+ color: false,
|
|
|
|
|
+ maxToolOutputLines: 3,
|
|
|
|
|
+ })
|
|
|
expect(tuiConfig.sessionId).toMatch(/^main-session-[0-9a-f-]{36}$/)
|
|
expect(tuiConfig.sessionId).toMatch(/^main-session-[0-9a-f-]{36}$/)
|
|
|
const spineConfig = calls[5]?.config as {
|
|
const spineConfig = calls[5]?.config as {
|
|
|
readonly agents: Array<Record<string, unknown>>
|
|
readonly agents: Array<Record<string, unknown>>
|