← Back to Kontasks
Flow Timeline Panel Fix
Fixed incorrect API endpoints causing timeline load failure
Output
🔧 Flow Timeline Panel Fixed
Root Cause
The flow timeline pane was calling non-existent MCP API endpoints:
/api/mcp/konui_get_flow_context ← 404 /api/mcp/konui_get_gravity_suggestions ← 404
MCP tools are only available through the MCP protocol, not as HTTP endpoints.
Fix Applied
| Old Endpoint | New Endpoint |
|---|---|
/api/mcp/konui_get_flow_context |
/api/gv/flows/context (GET) |
/api/mcp/konui_get_gravity_suggestions |
/api/kontasks/{id}/gravity (GET) |
Changes
konui/src/views/flow-timeline-pane.ts
- Fixed flow context fetch to use correct GET endpoint
- Fixed gravity suggestions to use REST API pattern
- Added response structure handling for nested context
✓ Committed: bec1959b
✓ Konui restarted - Refresh the page to test
Quick Actions
Original Request
No layout configured
Details
Type
General
Status
Completed
Scope
greatvibe
Tags
uibugfixflow-timeline
Created
11 Jan 2026, 12:45 am
Updated
11 Jan 2026, 12:45 am
Created By
claude
📋 Claude's Context
Session
ses_7c4eba4a...
🔗 Git Commit
bec1959b
Raw Data
{
"id": "23f25ff4-3d3d-4661-99af-caf391b94ac6",
"type": "general",
"status": "completed",
"title": "Flow Timeline Panel Fix",
"description": "Fixed incorrect API endpoints causing timeline load failure",
"context": {
"output": "<div style=\"background:#1e1e1e;color:#e0e0e0;padding:20px;border-radius:8px;font-family:'Consolas','Monaco',monospace;\">\n<h2 style=\"font-family:sans-serif;color:#fff;margin:0 0 16px 0;\">🔧 Flow Timeline Panel Fixed</h2>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"color:#e5c07b;margin:0 0 12px 0;\">Root Cause</h3>\n<p style=\"margin:0 0 8px 0;\">The flow timeline pane was calling <span style=\"color:#c678dd;\">non-existent MCP API endpoints</span>:</p>\n<pre style=\"background:#1e1e1e;padding:12px;border-radius:4px;overflow-x:auto;margin:8px 0;\">\n<span style=\"color:#e06c75;text-decoration:line-through;\">/api/mcp/konui_get_flow_context</span> <span style=\"color:#7f848e;\">← 404</span>\n<span style=\"color:#e06c75;text-decoration:line-through;\">/api/mcp/konui_get_gravity_suggestions</span> <span style=\"color:#7f848e;\">← 404</span>\n</pre>\n<p style=\"margin:8px 0 0 0;color:#7f848e;\">MCP tools are only available through the MCP protocol, not as HTTP endpoints.</p>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"color:#98c379;margin:0 0 12px 0;\">Fix Applied</h3>\n<table style=\"width:100%;border-collapse:collapse;font-size:14px;\">\n<tr style=\"border-bottom:1px solid #444;\">\n<th style=\"text-align:left;padding:8px;color:#61afef;\">Old Endpoint</th>\n<th style=\"text-align:left;padding:8px;color:#61afef;\">New Endpoint</th>\n</tr>\n<tr style=\"border-bottom:1px solid #333;\">\n<td style=\"padding:8px;\"><code style=\"color:#e06c75;\">/api/mcp/konui_get_flow_context</code></td>\n<td style=\"padding:8px;\"><code style=\"color:#98c379;\">/api/gv/flows/context</code> (GET)</td>\n</tr>\n<tr>\n<td style=\"padding:8px;\"><code style=\"color:#e06c75;\">/api/mcp/konui_get_gravity_suggestions</code></td>\n<td style=\"padding:8px;\"><code style=\"color:#98c379;\">/api/kontasks/{id}/gravity</code> (GET)</td>\n</tr>\n</table>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"color:#61afef;margin:0 0 12px 0;\">Changes</h3>\n<p style=\"margin:0;\"><span style=\"color:#56b6c2;\">konui/src/views/flow-timeline-pane.ts</span></p>\n<ul style=\"margin:8px 0 0 0;padding-left:20px;\">\n<li>Fixed flow context fetch to use correct GET endpoint</li>\n<li>Fixed gravity suggestions to use REST API pattern</li>\n<li>Added response structure handling for nested context</li>\n</ul>\n</div>\n\n<div style=\"background:#1a3d1a;border:1px solid #2d5a2d;padding:12px;border-radius:6px;\">\n<p style=\"margin:0;color:#98c379;\"><strong>✓ Committed:</strong> <code>bec1959b</code></p>\n<p style=\"margin:4px 0 0 0;color:#98c379;\"><strong>✓ Konui restarted</strong> - Refresh the page to test</p>\n</div>\n</div>",
"requestedAt": "2026-01-11T12:42:00.000Z",
"requestId": "f26cd31f-611a-44de-84cb-6c233def5cd1",
"commitSha": "bec1959b",
"choices": [
{
"label": "Test timeline",
"value": "Open the Flow Timeline panel and verify it loads correctly",
"primary": true
},
{
"label": "View logs",
"value": "Show recent konui logs to check for any errors"
}
]
},
"createdBy": "claude",
"createdAt": "2026-01-10T14:45:04.356Z",
"updatedAt": "2026-01-10T14:45:04.481Z",
"requestId": "f26cd31f-611a-44de-84cb-6c233def5cd1",
"scope": "greatvibe",
"tags": [
"ui",
"bugfix",
"flow-timeline"
],
"sessionId": "ses_7c4eba4a-596"
}