mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-11 02:33:51 +08:00
feat: 优化 CLI 历史记录输出格式,增加使用提示并规范化 sourceDir 处理
This commit is contained in:
@@ -145,8 +145,9 @@ function renderCliHistory() {
|
||||
</span>`
|
||||
: '';
|
||||
|
||||
// Escape sourceDir for use in onclick
|
||||
const sourceDirEscaped = exec.sourceDir ? exec.sourceDir.replace(/'/g, "\\'") : '';
|
||||
// Normalize and escape sourceDir for use in onclick
|
||||
// Convert backslashes to forward slashes to prevent JS escape issues in onclick
|
||||
const sourceDirEscaped = exec.sourceDir ? exec.sourceDir.replace(/\\/g, '/').replace(/'/g, "\\'") : '';
|
||||
|
||||
return `
|
||||
<div class="cli-history-item ${hasNative ? 'has-native' : ''}">
|
||||
|
||||
Reference in New Issue
Block a user