Completed
on 7 Jan 2026, 1:42 pm

Output

✅ Bug Fixed: Diff Viewer Now Works

🔍 The Problem

The commitSha was stored in context.commitSha by the MCP tool, but renderCommitInfo() was only checking kontask.commitSha (root level).

🛠️ The Fix

// Now checks both locations:
const commitSha = kontask.commitSha || kontask.context?.commitSha;
const filesChanged = kontask.filesChanged || kontask.context?.filesChanged;
const linesAdded = kontask.linesAdded ?? kontask.context?.linesAdded;
const linesRemoved = kontask.linesRemoved ?? kontask.context?.linesRemoved;

✅ Actions Taken

  • Fixed konui/src/views/kontask-detail.ts
  • Restarted konui
  • Committed: 1852abb1

👉 Try Again Now

Konui has been restarted. Click below to test:

Open Kontask f26b7617 →

What's Next?

You should now see the green commit info box with "View Diff" button.

Quick Actions

Original Request

No layout configured

Details

Type General
Status Completed
Scope vibetools
Tags kontasksbugfixgit
Created 7 Jan 2026, 1:42 pm
Updated 7 Jan 2026, 1:42 pm
Created By claude

🔗 Git Commit

1852abb1 +5 / -1
📁 1 file changed
  • konui/src/views/kontask-detail.ts

Raw Data

{
  "id": "e20953d5-37bb-4f65-ad71-0551b3fb3753",
  "type": "general",
  "status": "completed",
  "title": "Fixed: Diff Viewer Now Shows CommitSha from Context",
  "description": "Fixed bug where commitSha stored in context wasn't being read - konui restarted",
  "context": {
    "output": "<div style=\"background:#1e1e1e;color:#e0e0e0;padding:20px;border-radius:8px;font-family:system-ui,-apple-system,sans-serif;\">\n<h2 style=\"margin:0 0 16px 0;color:#fff;\">✅ Bug Fixed: Diff Viewer Now Works</h2>\n\n<div style=\"background:#1a2e1a;padding:16px;border-radius:6px;border-left:4px solid #22c55e;margin-bottom:16px;\">\n<h3 style=\"margin:0 0 8px 0;color:#4ade80;\">🔍 The Problem</h3>\n<p style=\"margin:0;line-height:1.6;\">The <code style=\"background:#374151;padding:2px 6px;border-radius:3px;\">commitSha</code> was stored in <code style=\"background:#374151;padding:2px 6px;border-radius:3px;\">context.commitSha</code> by the MCP tool, but <code style=\"background:#374151;padding:2px 6px;border-radius:3px;\">renderCommitInfo()</code> was only checking <code style=\"background:#374151;padding:2px 6px;border-radius:3px;\">kontask.commitSha</code> (root level).</p>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"margin:0 0 12px 0;color:#61afef;\">🛠️ The Fix</h3>\n<pre style=\"background:#1e1e1e;padding:12px;border-radius:4px;overflow-x:auto;font-size:0.85rem;margin:0;\">\n<span style=\"color:#7f848e;\">// Now checks both locations:</span>\n<span style=\"color:#c678dd;\">const</span> <span style=\"color:#e5c07b;\">commitSha</span> = kontask.commitSha || kontask.context?.commitSha;\n<span style=\"color:#c678dd;\">const</span> <span style=\"color:#e5c07b;\">filesChanged</span> = kontask.filesChanged || kontask.context?.filesChanged;\n<span style=\"color:#c678dd;\">const</span> <span style=\"color:#e5c07b;\">linesAdded</span> = kontask.linesAdded ?? kontask.context?.linesAdded;\n<span style=\"color:#c678dd;\">const</span> <span style=\"color:#e5c07b;\">linesRemoved</span> = kontask.linesRemoved ?? kontask.context?.linesRemoved;\n</pre>\n</div>\n\n<div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\">\n<h3 style=\"margin:0 0 12px 0;color:#98c379;\">✅ Actions Taken</h3>\n<ul style=\"margin:0;padding-left:20px;line-height:1.8;\">\n<li>Fixed <code style=\"background:#374151;padding:2px 6px;border-radius:3px;\">konui/src/views/kontask-detail.ts</code></li>\n<li>Restarted konui</li>\n<li>Committed: <code style=\"background:#374151;padding:2px 6px;border-radius:3px;color:#f59e0b;\">1852abb1</code></li>\n</ul>\n</div>\n\n<div style=\"background:#3d2d1a;padding:16px;border-radius:6px;border-left:4px solid #f59e0b;margin-bottom:16px;\">\n<h3 style=\"margin:0 0 8px 0;color:#fbbf24;\">👉 Try Again Now</h3>\n<p style=\"margin:0 0 12px 0;\">Konui has been restarted. Click below to test:</p>\n<a href=\"/kontasks/f26b7617-fa90-4776-a314-d10646239c03\" style=\"display:inline-block;background:linear-gradient(135deg,#d4a574,#c9956c);color:#000;padding:10px 20px;border-radius:6px;text-decoration:none;font-weight:bold;\">Open Kontask f26b7617 →</a>\n</div>\n\n<div style=\"background:#2d2d2d;padding:12px;border-radius:6px;\">\n<h4 style=\"margin:0 0 8px 0;color:#fff;\">What's Next?</h4>\n<p style=\"color:#9ca3af;margin:0;\">You should now see the green commit info box with \"View Diff\" button.</p>\n</div>\n</div>",
    "requestedAt": "2026-01-07T03:40:00Z",
    "requestId": "3c84db6c-dfde-4311-b1cb-77c05e4c468f",
    "commitSha": "1852abb1",
    "filesChanged": [
      "konui/src/views/kontask-detail.ts"
    ],
    "linesAdded": 5,
    "linesRemoved": 1,
    "choices": [
      {
        "label": "Test it now",
        "value": "Open /kontasks/f26b7617-fa90-4776-a314-d10646239c03 to test the diff viewer",
        "primary": true
      },
      {
        "label": "It works!",
        "value": "The diff viewer is working correctly now"
      },
      {
        "label": "Still broken",
        "value": "The diff viewer still isn't showing - need more investigation"
      }
    ]
  },
  "createdBy": "claude",
  "createdAt": "2026-01-07T03:42:12.848Z",
  "updatedAt": "2026-01-07T03:42:13.042Z",
  "requestId": "3c84db6c-dfde-4311-b1cb-77c05e4c468f",
  "scope": "vibetools",
  "tags": [
    "kontasks",
    "bugfix",
    "git"
  ],
  "targetUser": "claude"
}
DashboardReportsKontasksSessionsTelemetryLogs + Go