| 363 | |
| 364 | describe('FsSearchService direct: rg fallback + grep timeout (W11.1)', () => { |
| 365 | function makeStubSession(cwd: string): ISessionService { |
| 366 | return { |
| 367 | list: async () => [], |
| 368 | get: async () => ({ |
| 369 | id: 'sess_stub', |
| 370 | metadata: { cwd, model: 'kimi-k2', created_at: '2026-06-04T00:00:00Z' }, |
| 371 | status: 'idle', |
| 372 | created_at: '2026-06-04T00:00:00Z', |
| 373 | updated_at: '2026-06-04T00:00:00Z', |
| 374 | }), |
| 375 | create: async () => { |
| 376 | throw new Error('not used'); |
| 377 | }, |
| 378 | delete: async () => { |
| 379 | throw new Error('not used'); |
| 380 | }, |
| 381 | update: async () => { |
| 382 | throw new Error('not used'); |
| 383 | }, |
| 384 | dispose: () => undefined, |
| 385 | } as unknown as ISessionService; |
| 386 | } |
| 387 | |
| 388 | function makeStubLogger(): ILogService & { warnings: string[] } { |
| 389 | const warnings: string[] = []; |