Skip to content

fix: add ToolCall struct, fix parseToolCalls syntax error#23

Merged
jeanmachuca merged 3 commits into
mainfrom
fix/parse-toolcalls-main
Jul 2, 2026
Merged

fix: add ToolCall struct, fix parseToolCalls syntax error#23
jeanmachuca merged 3 commits into
mainfrom
fix/parse-toolcalls-main

Conversation

@jeanmachuca

Copy link
Copy Markdown
Member

Fixes Go syntax error in handlers.go:181 breaking CI builds.

  • Removes stray d.SetState/d.SendToClient code in parseToolCalls (referenced undefined vars)
  • Removes dangling }() causing unexpected ( at end of statement
  • Adds missing ToolCall struct to types.go
  • Adds calls = append(...) and return calls to complete the function
  • Keeps MCPInvokePayload intact (was missing SessionID after struct addition)

Fixes CI builds in both cognitiveosd and cognitiveos-distro.

…ecycle.go

- parseToolCalls: removed stray code referencing undefined vars, added calls append + return
- types.go: added missing ToolCall struct, kept MCPInvokePayload intact
- raw_client.go: added ValidatePrompt method from development
- mcp_lifecycle.go: removed NoNewPrivileges (unavailable in std syscall package)
@jeanmachuca jeanmachuca force-pushed the fix/parse-toolcalls-main branch from f40271b to b40939f Compare July 2, 2026 17:35
- audit.go: check Sscanf, Walk, WriteFile errors
- daemon.go: check Unload, Run, Send, WriteFile errors
- daemon_test.go: check Unmarshal, WriteFile, MkdirAll errors
- handlers.go: check SendToClient, wmClient.Unload errors
- mcp_lifecycle.go: check MkdirAll, Encode, Signal, Kill errors; remove unused deniedSyscalls
- raw_client.go: check SetDeadline errors
@jeanmachuca jeanmachuca closed this Jul 2, 2026
@jeanmachuca jeanmachuca reopened this Jul 2, 2026
@jeanmachuca jeanmachuca merged commit c5d06d9 into main Jul 2, 2026
1 check passed
@jeanmachuca jeanmachuca deleted the fix/parse-toolcalls-main branch July 7, 2026 03:24
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