Skip to content

feat(cloud-agent-next): disable question tool for cloud-agent sessions#1023

Open
eshurakov wants to merge 2 commits intomainfrom
eshurakov/cloud-agent-disable-question-tool
Open

feat(cloud-agent-next): disable question tool for cloud-agent sessions#1023
eshurakov wants to merge 2 commits intomainfrom
eshurakov/cloud-agent-disable-question-tool

Conversation

@eshurakov
Copy link
Contributor

@eshurakov eshurakov commented Mar 11, 2026

Summary

Temporarily disable the question tool for cloud-agent and app-builder sessions. If a user doesn't answer a question before the sandbox expires, the Kilo server rejects the late reply and the UI ends up in a broken state. Until that underlying issue is resolved, this change adds question: 'deny' to the permission config for these sessions, matching the behavior already in place for slack, webhook, and other non-interactive platforms.

Also fixes a pre-existing broken test in wrapper-client.test.ts where the shell-quote assertion didn't account for the WRAPPER_LOG_PATH env var added to the wrapper startup command.

Verification

  • pnpm run test — 650 passed, 0 failures
  • Confirmed question permission tests pass for all platforms: cloud-agent and app-builder now get question:deny, only undefined (no platform) remains interactive
  • Additional verification (typecheck, deploy, etc.)

Visual Changes

N/A

Reviewer Notes

  • This is a temporary measure. The question tool should be re-enabled once the sandbox-expiry / stale-answer rejection issue is fixed.
  • The only production logic change is simplifying the isInteractive condition in session-service.ts:581 to !createdOnPlatform — only sessions with no platform set retain the question tool.
  • The existing question event plumbing (WebSocket events, tRPC handlers, frontend UI) is untouched — it will simply never fire for cloud-agent or app-builder sessions.
  • The wrapper test fix uses expect.stringMatching(...) with a regex to handle the non-deterministic Date.now() timestamp in WRAPPER_LOG_PATH.

Temporarily disable the question tool for cloud-agent sessions.
If a user doesn't answer a question before the sandbox expires,
the Kilo server rejects the late reply and the UI ends up in a
broken state. Until that is resolved, deny the question tool for
cloud-agent sessions.
@eshurakov eshurakov marked this pull request as ready for review March 11, 2026 14:47
The test used an exact string match but the startup command now
includes WRAPPER_LOG_PATH with a Date.now() timestamp. Use a regex
match instead so the assertion is deterministic.
@eshurakov eshurakov force-pushed the eshurakov/cloud-agent-disable-question-tool branch from e04a1fd to d2e3cf9 Compare March 11, 2026 14:48
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.

1 participant