qwen-code/integration-tests/terminal-capture/scenarios/pr-2371-review.ts
tanzhenxin 78faa365cb feat(tools): allow read-file access to OS temp directory
- Add os.tmpdir() to allowed paths in read-file tool
- Add tests for reading files from OS temp directory
- Add terminal capture scenario for PR review testing

This supports the PR review workflow which saves context to temp files.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-17 17:13:23 +08:00

18 lines
487 B
TypeScript

import type { ScenarioConfig } from '../scenario-runner.js';
export default {
name: 'pr-2371-review',
spawn: ['node', 'dist/cli.js', '--yolo'],
terminal: { title: 'qwen-code', cwd: '../../..' },
flow: [
{
type: '/review https://github.com/QwenLM/qwen-code/pull/2371',
streaming: {
delayMs: 5000,
intervalMs: 10000, // Every 10s
count: 60, // 10 minutes total (60 * 10s)
gif: true,
},
},
],
} satisfies ScenarioConfig;