Skip to content

Conversation

@damejeras
Copy link

@damejeras damejeras commented Jan 12, 2026

What does this PR do?

This adds a support for agent, model and variant pre-selection through URL parameters in /session endpoint.
This allows better integration with external tools. For example neovim users could bind a keybinding to open new session on a project with Plan agent and specific model pre-selected.

Closes: #6822

For example
http://127.0.0.1:62136/QzpcVXNlcnNcYWRtaW5cQ29kZVxvcGVuY29kZS1wbHVnaW4/session?agent=plan will pre-select Plan agent in web UI.

additional URL parameters:
?model= (example ?model=opencode/gpt-5-nano)
?variant= (example ?variant=high)

How did you verify your code works?

I have tested it manually by entering URL in a browser and seeing parameters in the chat box being selected.

@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

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.

Feature Request: URL parameters for agent/model preselection in web UI

1 participant