vscode 树形列表选择trace暂停失败:[400] /api/traces/01KNF28A1KZYFJW5NZPQGXCT3P/pause — Bad Request
- User
vscode 树形列表选择trace暂停失败:[400] /api/traces/01KNF28A1KZYFJW5NZPQGXCT3P/pause — Bad Request
Assistant
The root cause is clear. The
transitionToPausedguard intraceService.ts:714only allows pausing fromrunningorin_progressstatus. When you select a trace that's in any other state (e.g.completed,failed, or alreadypaused), it returnsnull→ 400.The tree view currently shows the pause action regardless of the trace's current status.
Fix options:
-
Disable the context menu item via
whenclause — Add awhencondition inpackage.jsonso the "Pause" menu item only appears for traces inrunning/in_progressstate. This requires the to expose status as context value.
-
- User
是
- User
我暂停的是 01KNF28A1KZYFJW5NZPQGXCT3P, 状态running
- User
中文回答