fix(examples): remove legacy retry rejection
This commit is contained in:
@@ -82,8 +82,6 @@ export interface Config {
|
||||
resumeSessionId?: string
|
||||
/** Controls automatic AGENTS.md/CLAUDE.md loading; configure a byte budget or set `false`. */
|
||||
workspaceContext: agentCore.Config['workspaceContext']
|
||||
/** Invalid at app level; configure `retryPolicy` under each provider. */
|
||||
llmRetry?: never
|
||||
}
|
||||
|
||||
export const Config: z<Config> = z.object({
|
||||
@@ -108,8 +106,6 @@ export const Config: z<Config> = z.object({
|
||||
goals: z.union([z.const(false), agentCore.GoalConfigSchema]),
|
||||
resumeSessionId: z.string(),
|
||||
workspaceContext: z.union([z.const(false), workspaceContext.Config]).required(),
|
||||
// Provider retryPolicy makes a top-level llmRetry invalid.
|
||||
llmRetry: z.never(),
|
||||
})
|
||||
/* jscpd:ignore-end */
|
||||
|
||||
|
||||
@@ -21,16 +21,6 @@ function recordingContext(): { readonly ctx: Context; readonly calls: PluginCall
|
||||
}
|
||||
|
||||
describe('dsh-tui-demo app', () => {
|
||||
it('rejects app-level llmRetry config through plugin validation', async () => {
|
||||
const ctx = new Context()
|
||||
await expect(ctx.plugin(tuiAgent, {
|
||||
provider: 'mock',
|
||||
model: 'mock',
|
||||
workspaceContext: false,
|
||||
llmRetry: { maxTransientRetries: 2 },
|
||||
} as never)).rejects.toThrow(/llmRetry/)
|
||||
})
|
||||
|
||||
it('composes the TUI cluster around one fresh exact session identity', () => {
|
||||
const { ctx, calls } = recordingContext()
|
||||
tuiAgent.composeTuiApp(ctx, {
|
||||
|
||||
Reference in New Issue
Block a user