test(stack): cover synced context regressions
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
- tab "Chat" [selected]
|
- tab "Chat" [selected]
|
||||||
- tab "Trajectory"
|
- tab "Trajectory"
|
||||||
- img
|
- img
|
||||||
- text: "plan Plan mode on. Use /plan off to leave. Plan a small change: add a --greeting flag to a CLI. Do not read or write any files. Call exit_plan_mode with a short plan of at most five bullet points. Once the plan is approved, reply with the single word DONE and stop. {{clock}}"
|
- text: "plan Plan mode on. Use /plan off to leave. Interjection Plan a small change: add a --greeting flag to a CLI. Do not read or write any files. Call exit_plan_mode with a short plan of at most five bullet points. Once the plan is approved, reply with the single word DONE and stop. {{clock}}"
|
||||||
- button "Copy":
|
- button "Copy":
|
||||||
- img
|
- img
|
||||||
- button "Branch into a new conversation" [disabled]:
|
- button "Branch into a new conversation" [disabled]:
|
||||||
|
|||||||
@@ -409,6 +409,10 @@ describe('dsh-tool-skill', () => {
|
|||||||
const home = await tempDir('tool-proposed-empty-catalog')
|
const home = await tempDir('tool-proposed-empty-catalog')
|
||||||
const ctx = await setup(home)
|
const ctx = await setup(home)
|
||||||
const session = Session.create(SessionId('proposed-empty-catalog'))
|
const session = Session.create(SessionId('proposed-empty-catalog'))
|
||||||
|
const malformed = createUserMessage({
|
||||||
|
content: [{ type: 'text', text: 'preserve unreadable claimed context' }],
|
||||||
|
source: { kind: 'skill-catalog', form: 'catalog' } as never,
|
||||||
|
})
|
||||||
const stale = createUserMessage({
|
const stale = createUserMessage({
|
||||||
content: catalogContent(['- `stale-skill`: Stale skill']),
|
content: catalogContent(['- `stale-skill`: Stale skill']),
|
||||||
source: {
|
source: {
|
||||||
@@ -418,9 +422,9 @@ describe('dsh-tool-skill', () => {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const decision = await proposeStep(ctx, sessionAgent(session), [stale])
|
const decision = await proposeStep(ctx, sessionAgent(session), [malformed, stale])
|
||||||
|
|
||||||
expect(decision).toEqual({ kind: 'enter', messages: [] })
|
expect(decision).toEqual({ kind: 'enter', messages: [malformed] })
|
||||||
})
|
})
|
||||||
|
|
||||||
it('keeps a proposed catalog that already matches the current snapshot', async () => {
|
it('keeps a proposed catalog that already matches the current snapshot', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user