Skip to content

fix(desktop): keep workflow cancel in current window#27

Merged
earayu merged 1 commit into
mainfrom
codex/recipe-cancel-new-chat-inline
May 28, 2026
Merged

fix(desktop): keep workflow cancel in current window#27
earayu merged 1 commit into
mainfrom
codex/recipe-cancel-new-chat-inline

Conversation

@earayu
Copy link
Copy Markdown
Collaborator

@earayu earayu commented May 28, 2026

Why

When a user cancels a workflow parameter form and chooses "Start New Chat", the desktop app currently creates a new chat window and hides the current window. That feels surprising because the user expects to continue in the same app surface.

What changed

  • Replace createChatWindow + hideWindow in ParameterInputModal with an in-place navigate('/pair').
  • Keep the change in the desktop UI layer only; no window-management or Rust changes.

Verification

  • pnpm -C ui/desktop exec eslint src/components/ParameterInputModal.tsx --max-warnings 0 --no-warn-ignored
  • git diff --check

@earayu earayu merged commit c55306d into main May 28, 2026
20 checks passed
@earayu earayu deleted the codex/recipe-cancel-new-chat-inline branch May 28, 2026 10:26
earayu added a commit that referenced this pull request May 28, 2026
Take origin/main version (PR #27 navigate('/pair')) over upstream HEAD
(onClose()). navigate('/pair') routes to a fresh blank /pair session,
which matches the user intent better than onClose() (which would
continue the recipe-pair without params).

Signed-off-by: earayu <earayu@163.com>
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