mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-11 02:33:51 +08:00
fix: Replace file:// URLs with local HTTP server for dashboard access
Dashboards use fetch() API which doesn't work with file:// protocol due to browser CORS restrictions. Now starts Python HTTP server for proper access. - review-module-cycle: port 8765 - review-session-cycle: port 8765 - review-fix: port 8766 (different port for concurrent use) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -254,8 +254,10 @@ sed -i "s|{{SESSION_ID}}|${sessionId}|g" ${sessionDir}/fixes/${fixSessionId}/fix
|
|||||||
# 3. Replace REVIEW_DIR placeholder
|
# 3. Replace REVIEW_DIR placeholder
|
||||||
sed -i "s|{{REVIEW_DIR}}|${reviewDir}|g" ${sessionDir}/fixes/${fixSessionId}/fix-dashboard.html
|
sed -i "s|{{REVIEW_DIR}}|${reviewDir}|g" ${sessionDir}/fixes/${fixSessionId}/fix-dashboard.html
|
||||||
|
|
||||||
# 4. Output dashboard URL
|
# 4. Start local server and output dashboard URL
|
||||||
echo "🔧 Fix Dashboard: file://$(cd ${sessionDir}/fixes/${fixSessionId} && pwd)/fix-dashboard.html"
|
cd ${sessionDir}/fixes/${fixSessionId} && python -m http.server 8766 --bind 127.0.0.1 &
|
||||||
|
echo "🔧 Fix Dashboard: http://127.0.0.1:8766/fix-dashboard.html"
|
||||||
|
echo " (Press Ctrl+C to stop server when done)"
|
||||||
```
|
```
|
||||||
|
|
||||||
**Dashboard Features**:
|
**Dashboard Features**:
|
||||||
|
|||||||
@@ -242,8 +242,11 @@ sed -i "s|{{REVIEW_TYPE}}|module|g" ${sessionDir}/.review/dashboard.html
|
|||||||
# Step 4: Replace REVIEW_DIR placeholder
|
# Step 4: Replace REVIEW_DIR placeholder
|
||||||
sed -i "s|{{REVIEW_DIR}}|${reviewDir}|g" ${sessionDir}/.review/dashboard.html
|
sed -i "s|{{REVIEW_DIR}}|${reviewDir}|g" ${sessionDir}/.review/dashboard.html
|
||||||
|
|
||||||
# Output: Dashboard path
|
# Output: Start local server and output dashboard URL
|
||||||
echo "📊 Dashboard: file://$(cd ${sessionDir} && pwd)/.review/dashboard.html"
|
# Use Python HTTP server (available on most systems)
|
||||||
|
cd ${sessionDir}/.review && python -m http.server 8765 --bind 127.0.0.1 &
|
||||||
|
echo "📊 Dashboard: http://127.0.0.1:8765/dashboard.html"
|
||||||
|
echo " (Press Ctrl+C to stop server when done)"
|
||||||
```
|
```
|
||||||
|
|
||||||
**Step 6: TodoWrite Initialization**
|
**Step 6: TodoWrite Initialization**
|
||||||
|
|||||||
@@ -222,8 +222,10 @@ sed -i "s|{{REVIEW_TYPE}}|session|g" ${sessionDir}/.review/dashboard.html
|
|||||||
# Step 4: Replace REVIEW_DIR placeholder
|
# Step 4: Replace REVIEW_DIR placeholder
|
||||||
sed -i "s|{{REVIEW_DIR}}|${reviewDir}|g" ${sessionDir}/.review/dashboard.html
|
sed -i "s|{{REVIEW_DIR}}|${reviewDir}|g" ${sessionDir}/.review/dashboard.html
|
||||||
|
|
||||||
# Output: Dashboard path
|
# Output: Start local server and output dashboard URL
|
||||||
echo "📊 Dashboard: file://$(cd ${sessionDir} && pwd)/.review/dashboard.html"
|
cd ${sessionDir}/.review && python -m http.server 8765 --bind 127.0.0.1 &
|
||||||
|
echo "📊 Dashboard: http://127.0.0.1:8765/dashboard.html"
|
||||||
|
echo " (Press Ctrl+C to stop server when done)"
|
||||||
```
|
```
|
||||||
|
|
||||||
**Step 7: TodoWrite Initialization**
|
**Step 7: TodoWrite Initialization**
|
||||||
|
|||||||
Reference in New Issue
Block a user