Skip to content

fix(agent_mu): replace empty catch {} with error logging in mcp_nexus.zig #197

@gHashTag

Description

@gHashTag

Problem

src/agent_mu/mcp_nexus.zig line 258 has an empty catch {} that silently drops append errors.

File

src/agent_mu/mcp_nexus.zig

Line to fix

Line 258: a_list.append(self.allocator, self.allocator.dupe(u8, word) catch continue) catch {};

Replace with:

a_list.append(self.allocator, self.allocator.dupe(u8, word) catch continue) catch |err| {
    std.log.debug("mcp_nexus: append word to argument list failed: {}", .{err});
};

Do NOT touch

  • self_improvement_test.zig and fixer.zig — test cleanup, acceptable catch {}

Acceptance

  • zig build compiles
  • No empty catch {} in mcp_nexus.zig

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:spawnAuto-spawn agent container

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions