Skip to content

Forker launcher uses fragile substring matching for agent detection #13

Description

@rajfirke

Description

launcher.go uses strings.Contains(agent, \"o4\") which matches unintended names like "proto4". The default fallback to Claude for unknown agents is silent.

Fix

Use prefix matching or an explicit map and return an error for unrecognized agents.

Location

internal/forker/launcher.go:22-27

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions