Skip to content

data-qa→analyst default-agent migration warning is invisible to normal users (print-gated) and recurs each start #1244

Description

@anandgupta42

Summary

PR #1239 removed the data-qa agent and added a safe migration: a persisted default_agent: "data-qa" now falls back to analyst instead of throwing (verified on main, agent.ts::defaultInfo(), with regression tests). The fallback behavior is correct and tested. This issue tracks the UX polish flagged by two review threads on #1239 that were not blocking and merged open.

The gap

The migration's "one-time warning" is effectively invisible to a normal user:

  • The warning is emitted via the fork's Log shim (src/altimate/util/log.ts), whose shouldLog gates on printEnabled() — output only appears when OPENCODE_PRINT_LOGS / ALTIMATE_PRINT_LOGS is explicitly set. That is off by default for normal CLI runs and deliberately off for the in-process TUI server.
  • So an upgrading user whose config sets default_agent: "data-qa" is silently rerouted to analyst with nothing telling them their configured agent changed.
  • The on-disk config is never rewritten, so the substitution recurs on every start — it is not, from the user's perspective, a true one-time notice.

Suggested fix (either or both)

  • Surface the notice through a channel that reaches interactive sessions (a session/toast notification), not the print-gated stderr logger.
  • And/or persist the migrated value back into config so the substitution happens once and the config becomes self-consistent.

Severity

UX polish on an already-safe fallback — not a functional regression. The user is correctly routed; they're just not told. Low priority.

Source: review threads on #1239 (agent.ts:618/619, chatgpt-codex-connector P2 + cubic-dev-ai P3).

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

    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