File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1529,8 +1529,13 @@ export class SidebarProvider implements vscode.WebviewViewProvider {
15291529 // 渲染Bug列表
15301530 renderBugs(report.bugs || []);
15311531
1532- // 渲染步骤详情
1532+ // 渲染步骤详情(自动展开)
15331533 renderSteps(report.steps || []);
1534+ if ((report.steps || []).length > 0) {
1535+ stepExpanded = true;
1536+ stepList.classList.remove("hidden");
1537+ stepToggle.textContent = "📝 步骤详情 ▾";
1538+ }
15341539
15351540 // MCP闭环提示
15361541 if (report.bug_count > 0) {
Original file line number Diff line number Diff line change @@ -320,10 +320,14 @@ async function main() {
320320 // 初始化连接
321321 const initPage = await initConnect ( ) ;
322322
323- // 执行所有步骤
323+ // 执行所有步骤(逐步输出进度到stderr,Python端实时读取)
324324 for ( let i = 0 ; i < steps . length ; i ++ ) {
325+ const stepDesc = steps [ i ] . description || steps [ i ] . action ;
326+ process . stderr . write ( `[PROGRESS] ${ i + 1 } /${ steps . length } ${ stepDesc } \n` ) ;
325327 const result = await executeStep ( steps [ i ] , i + 1 ) ;
326328 results . push ( result ) ;
329+ const icon = result . status === 'passed' ? '✅' : '❌' ;
330+ process . stderr . write ( `[STEP] ${ icon } #${ i + 1 } ${ result . status } ${ stepDesc } (${ result . duration . toFixed ( 1 ) } s)\n` ) ;
327331 }
328332
329333 // 断开连接
You can’t perform that action at this time.
0 commit comments