Skip to content

Validate Navigator session options - #117

Open
dbpolito wants to merge 2 commits into
mainfrom
fix/validate-navigator-session-options
Open

Validate Navigator session options#117
dbpolito wants to merge 2 commits into
mainfrom
fix/validate-navigator-session-options

Conversation

@dbpolito

Copy link
Copy Markdown
Contributor

Ticket

SKIPPED

Description

Validate Navigator agent, model, and variant selections before creating or steering OpenCode sessions. This prevents invalid explicit options from surfacing as opaque asynchronous prompt failures while preserving inherited caller and session defaults.

Checklist

Agent Selection

  • Expose registered OpenCode agents in Navigator tool schemas
  • Validate selected agents in the destination location

Model Selection

  • Reject unavailable or disabled models with actionable alternatives
  • Validate and preserve model variants when steering sessions

Validation

  • Verify that invalid agents, models, and variants fail before session mutation
  • Confirm that omitted options continue to inherit existing defaults
  • Check that compile, typecheck, and all tests pass

- expose registered OpenCode agents in Navigator tool schemas
- validate agent, model, and variant selections before session changes
- preserve model variants when steering existing sessions
@dbpolito dbpolito self-assigned this Aug 13, 2026

@kompassdev kompassdev Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

★★★★☆

Comment thread packages/opencode/navigator.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant