@@ -1038,11 +1038,11 @@ function showCommandDetailModal(cmd) {
// Show/hide tab content
var tabContents = modal.querySelectorAll('.detail-tab-content');
tabContents.forEach(function(content) {
- content.classList.add('hidden');
+ content.classList.remove('active');
});
var activeTab = modal.querySelector('#' + tabName + '-tab');
if (activeTab) {
- activeTab.classList.remove('hidden');
+ activeTab.classList.add('active');
}
// Load document content if needed
@@ -1099,13 +1099,21 @@ function loadCommandDocument(modal, sourcePath) {
fetch('/api/help/command-content?source=' + encodeURIComponent(sourcePath))
.then(function(response) {
if (!response.ok) {
- throw new Error('Failed to load document');
+ throw new Error('HTTP ' + response.status + ': ' + response.statusText);
}
return response.text();
})
.then(function(markdown) {
// Parse markdown to HTML
- var html = parseMarkdown(markdown);
+ try {
+ var html = parseMarkdown(markdown);
+ if (!html) {
+ throw new Error('parseMarkdown returned empty result');
+ }
+ } catch (parseError) {
+ console.error('[Help] parseMarkdown failed:', parseError.message, parseError.stack);
+ throw parseError;
+ }
if (contentDiv) {
contentDiv.innerHTML = html;
@@ -1116,11 +1124,13 @@ function loadCommandDocument(modal, sourcePath) {
if (typeof lucide !== 'undefined') lucide.createIcons();
})
.catch(function(error) {
- console.error('Failed to load document:', error);
+ console.error('[Help] Failed to load document:', error.message || error);
+ if (contentDiv) contentDiv.classList.add('hidden');
+ if (loaderDiv) loaderDiv.classList.add('hidden');
if (errorDiv) {
+ errorDiv.textContent = 'Failed to load document: ' + (error.message || 'Unknown error');
errorDiv.classList.remove('hidden');
}
- if (loaderDiv) loaderDiv.classList.add('hidden');
});
}
diff --git a/package.json b/package.json
index be0cb0c3..8ad3f038 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "claude-code-workflow",
- "version": "6.3.50",
+ "version": "6.3.51",
"description": "JSON-driven multi-agent development framework with intelligent CLI orchestration (Gemini/Qwen/Codex), context-first architecture, and automated workflow execution",
"type": "module",
"main": "ccw/src/index.js",