Skip to content

refactor(agent): consolidate enableYoloMode() to use applySessionMode #1893

@gobylor

Description

@gobylor

Problem

enableYoloMode() in acp/index.ts performs the same setSessionMode call as the newly extracted applySessionMode helper, but with no error handling (errors propagate unhandled to the caller). This is a third duplication site.

Suggested Fix

Have enableYoloMode() delegate to this.applySessionMode(sessionMode, true, ...) instead of inlining the setSessionMode call. This consolidates all session mode application into a single method with consistent error handling and perf logging.

Files

  • src/process/agent/acp/index.ts (enableYoloMode method, applySessionMode method)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions