Skip to content

Planning phase errors have blank detail messages after Vercel AI SDK migration #1978

@thameema

Description

@thameema

After the Python-to-TypeScript migration (Vercel AI SDK v6), the planning phase produces error entries in task_logs.json with completely empty detail fields.

Steps to Reproduce

  1. Create a task (from any source - manual, GitHub, GitLab, or JIRA)
  2. Start the task (moves to planning phase)
  3. Planning phase completes with errors
  4. Check Logs tab - error entries show red 'error' badges with no message

Expected

Error entries should contain the actual error message (e.g., rate limit, auth failure, tool error) so users can diagnose and fix the issue.

Actual

All error entries have empty detail fields:

{"type": "error", "phase": "planning", "detail": ""}

Environment

  • Aperant 2.8.0-beta.1
  • Claude Code subscription (OAuth, not API key)
  • Claude CLI 2.1.81 works fine independently
  • macOS

Analysis

The issue appears to be in the agent session runner or worker bridge - errors are caught but the message string is not passed through to the task log entry. The Claude CLI itself works (tested with claude -p 'say hello').

This affects all task types, not just a specific integration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions