Skip to content

BUG: ag read crashes with TypeError: Cannot read properties of undefined (reading 'split') #4684

Description

@OneStepAt4time

Bug Description

ag read <session-id\u003e crashes with TypeError when trying to read session state.

Error

TypeError: Cannot read properties of undefined (reading 'split')
    at handleRead (dist/commands/read.js:48:31)

Steps to Reproduce

  1. Create a session: ag create "test task"
  2. Try to read it: ag read <session-id>
  3. Observe crash

Expected Behavior

Should display session state/logs without crashing.

Environment

  • Aegis v0.6.7
  • Node v22.22.1
  • Linux 6.17.0-35-generic

Impact

Blocks CLI session monitoring. Forces reliance on dashboard/Telegram.

Found During

Endurance test #4683 (2026-06-13).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions