From 12e3338b69db91ced4dad471cc5f70a72e7e66ec Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Wed, 29 Jul 2026 09:14:55 +0200 Subject: [PATCH] tools: handle string 'true' for elevated flag Kiro's bridge sends elevated as a string rather than a boolean. Use a type switch to handle both cases. --- pkg/tools/execute/server.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/tools/execute/server.go b/pkg/tools/execute/server.go index 0c2c408..fe7a020 100644 --- a/pkg/tools/execute/server.go +++ b/pkg/tools/execute/server.go @@ -287,8 +287,11 @@ func (e *Server) callPromotedTool(ctx context.Context, tool string, args json.Ra var argMap map[string]interface{} if err := json.Unmarshal(args, &argMap); err == nil { if e, ok := argMap["elevated"]; ok { - if b, ok := e.(bool); ok { - elevated = b + switch v := e.(type) { + case bool: + elevated = v + case string: + elevated = v == "true" || v == "1" } // Remove elevated from the args passed to the tool. delete(argMap, "elevated")