Skip to content

Pre-fill agent run form from URL query parameters#6255

Merged
suhaibmujahid merged 1 commit into
mozilla:masterfrom
msujaws:deeplink-agent-run-form
Jul 1, 2026
Merged

Pre-fill agent run form from URL query parameters#6255
suhaibmujahid merged 1 commit into
mozilla:masterfrom
msujaws:deeplink-agent-run-form

Conversation

@msujaws

@msujaws msujaws commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Deep-link support for the agent run page: TriggerForm seeds each field from snake_case query params (agent, bug_id, bug_data, model, max_turns, effort) via useSearchParams, matching the /api/runs inputs contract so a link mirrors what the run receives. Invalid/missing params fall back to the existing empty defaults; an invalid agent falls back to bug-fix.

Wrap TriggerForm in a Suspense boundary as required by useSearchParams in Next 15.

suhaibmujahid
suhaibmujahid previously approved these changes Jun 30, 2026

@suhaibmujahid suhaibmujahid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! We have some new fields that were added. Could you please resolve the merge conflict ad support them as well?

suhaibmujahid
suhaibmujahid previously approved these changes Jul 1, 2026
@suhaibmujahid suhaibmujahid enabled auto-merge (squash) July 1, 2026 16:32
Deep-link support for the agent run page: TriggerForm seeds each field from snake_case query params (agent, bug_id, bug_data, model, max_turns, effort) via useSearchParams, matching the /api/runs inputs contract so a link mirrors what the run receives. Invalid/missing params fall back to the existing empty defaults; an invalid agent falls back to bug-fix.

Wrap TriggerForm in a Suspense boundary as required by useSearchParams in Next 15.
auto-merge was automatically disabled July 1, 2026 16:51

Head branch was pushed to by a user without write access

@msujaws msujaws force-pushed the deeplink-agent-run-form branch from 832be8f to 349d0af Compare July 1, 2026 16:51
@suhaibmujahid suhaibmujahid enabled auto-merge (squash) July 1, 2026 17:24
@suhaibmujahid suhaibmujahid merged commit 33bbf7e into mozilla:master Jul 1, 2026
6 checks passed
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.

2 participants