Skip to content

Fix custom endpoint modal button not updating on model name edit#10987

Draft
warp-dev-github-integration[bot] wants to merge 1 commit into
masterfrom
fix/custom-endpoint-modal-button-delay
Draft

Fix custom endpoint modal button not updating on model name edit#10987
warp-dev-github-integration[bot] wants to merge 1 commit into
masterfrom
fix/custom-endpoint-modal-button-delay

Conversation

@warp-dev-github-integration
Copy link
Copy Markdown

@warp-dev-github-integration warp-dev-github-integration Bot commented May 15, 2026

Description

The "Add endpoint" / "Save" button in the custom endpoint modal remained disabled for a noticeable delay after entering a valid model name. The root cause was that handle_model_editor_event was missing an EditorEvent::Edited(_) handler — unlike all other editor event handlers in the modal (endpoint name, URL, API key), it never called ctx.notify() on edits. Without that notification, the view never re-rendered to re-evaluate is_valid(), so the button stayed disabled until some unrelated event triggered a re-render.

The fix adds EditorEvent::Edited(_) => { ctx.notify(); } to handle_model_editor_event, consistent with the other handlers.

Linked Issue

N/A

Testing

  • I have manually tested my changes locally with ./script/run

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

Conversation: https://staging.warp.dev/conversation/5f6a03fd-63fb-4f88-bd09-f0cbdfc0c21b
Run: https://oz.staging.warp.dev/runs/019e2a89-2c01-7130-b10f-43b0e72ea21c
This PR was generated with Oz.

@cla-bot cla-bot Bot added the cla-signed label May 15, 2026
The 'Add endpoint' / 'Save' button remained disabled after entering a
valid model name because handle_model_editor_event was missing an
EditorEvent::Edited handler. Without ctx.notify(), the view never
re-rendered to re-evaluate is_valid(), so the button stayed disabled
until some other event triggered a re-render.

All other editor event handlers (endpoint name, URL, API key) already
called ctx.notify() on Edited events — this brings the model editors
in line.

Co-Authored-By: Oz <oz-agent@warp.dev>
@warp-dev-github-integration warp-dev-github-integration Bot force-pushed the fix/custom-endpoint-modal-button-delay branch from 800525f to b1ea128 Compare May 15, 2026 07:30
@warp-dev-github-integration warp-dev-github-integration Bot changed the title Fix custom endpoint modal save button not updating on model name edit Fix custom endpoint modal button not updating on model name edit May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant