Skip to content

fix(kiloclaw): restore slash command access - #11798

Merged
catrielmuller merged 1 commit into
mainfrom
funny-tarp
Jun 29, 2026
Merged

fix(kiloclaw): restore slash command access#11798
catrielmuller merged 1 commit into
mainfrom
funny-tarp

Conversation

@catrielmuller

@catrielmuller catrielmuller commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Issue

No linked issue. User-reported regression: /kiloclaw no longer opened KiloClaw in the TUI or VS Code extension, while the hosted web chat still worked.

Regression introduced on: #10864

Context

The hosted KiloClaw status API now returns numeric timestamp fields. The local CLI backend still decoded those fields as strings, so /kilo/claw/status returned 502 Failed to reach KiloClaw even though chat credentials were valid. Both the TUI and VS Code KiloClaw panel gate startup on that local status endpoint.

Implementation

Normalize numeric KiloClaw lastStartedAt and lastStoppedAt values to ISO strings at the Kilo Gateway boundary before the CLI HTTP API decodes the status schema. This preserves the existing local SDK/UI contract while accepting the current cloud response shape.

Also add /kiloclaw as a VS Code chat-local slash command that opens the existing KiloClaw panel, matching the toolbar command.

Screenshots / Video

N/A - no visual changes.

How to Test

Manual/local verification

  • Agent: Started a local dev backend with bun run dev serve --port 0 and verified /kilo/claw/status returned 200 with normalized ISO lastStartedAt.
  • Agent: Verified /kilo/claw/chat-credentials still returned 200 with the token redacted from logs.
  • Agent: Ran bun test test/kilocode/server/kilo-gateway-statuses.test.ts from packages/opencode/.
  • Agent: Ran bun run typecheck from packages/opencode/.
  • Agent: Ran bun run typecheck from packages/kilo-gateway/.
  • Agent: Ran bun run typecheck from packages/kilo-vscode/.
  • Agent: Ran bun run lint from packages/kilo-vscode/.
  • Agent: Push hook ran bun turbo typecheck successfully.

Reviewer test steps

  1. Sign in with a Kilo account that has a KiloClaw instance.
  2. In the CLI TUI, enter /kiloclaw and confirm the KiloClaw chat view opens.
  3. In the VS Code extension chat, enter /kiloclaw and confirm the KiloClaw panel opens.
  4. Confirm the KiloClaw panel loads instance status and chat rather than showing the setup/upgrade fallback.

Blocked checks and substitute verification

  • None.

Checklist

  • Issue linked above, or exception explained
  • Tests/verification described
  • Screenshots/video included for visual changes, or marked N/A
  • Changeset considered for user-facing changes
  • I personally reviewed the diff and can explain the changes, including any AI-assisted work.

Get in Touch

GitHub: @catrielmuller

@catrielmuller
catrielmuller enabled auto-merge June 29, 2026 12:38
@kilo-code-bot

kilo-code-bot Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (8 files)
  • .changeset/fix-kiloclaw-slash.md
  • packages/kilo-gateway/src/index.ts
  • packages/kilo-gateway/src/server/handlers.ts
  • packages/kilo-vscode/src/KiloProvider.ts
  • packages/kilo-vscode/webview-ui/src/hooks/useSlashCommand.ts
  • packages/kilo-vscode/webview-ui/src/types/messages/webview-messages.ts
  • packages/opencode/src/kilocode/server/httpapi/handlers/kilo-gateway.ts
  • packages/opencode/test/kilocode/server/kilo-gateway-statuses.test.ts

Reviewed by gpt-5.4-20260305 · Input: 116.8K · Output: 12.6K · Cached: 1.6M

Review guidance: REVIEW.md from base branch main

@catrielmuller
catrielmuller disabled auto-merge June 29, 2026 12:51
@catrielmuller
catrielmuller merged commit db05b70 into main Jun 29, 2026
28 checks passed
@catrielmuller
catrielmuller deleted the funny-tarp branch June 29, 2026 12:54
t7tran pushed a commit to t7tran/kilocode that referenced this pull request Aug 14, 2026
fix(kiloclaw): restore slash command access
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants