Skip to content

Fix: Cancelling fork dialog with ESC no longer clears input#921

Open
Nithishvb wants to merge 1 commit intohumanlayer:mainfrom
Nithishvb:fix/fork-dialog-esc-clears-input
Open

Fix: Cancelling fork dialog with ESC no longer clears input#921
Nithishvb wants to merge 1 commit intohumanlayer:mainfrom
Nithishvb:fix/fork-dialog-esc-clears-input

Conversation

@Nithishvb
Copy link
Copy Markdown

@Nithishvb Nithishvb commented Dec 22, 2025

What problem(s) was I solving?

What user-facing changes did I ship?

How I implemented it

How to verify it

  • I have ensured make check test passes

Description for the changelog

Closes: #893

Cancelling the fork dialog using the ESC key was unintentionally clearing the input field, causing users to lose any text they had already typed. This PR fixes that behavior by ensuring the input state is preserved unless the user explicitly submits or clears it.

A picture of a cute animal (not mandatory but encouraged)


Important

Fixes issue in ActiveSession.tsx where pressing ESC in fork dialog cleared input field, preserving input state unless explicitly cleared.

  • Behavior:
    • Fixes issue where pressing ESC in fork dialog cleared input field in ActiveSession.tsx.
    • Input state is now preserved unless explicitly submitted or cleared.
  • Functions:
    • Removes responseEditor?.commands.setContent('') from handleForkCancel in ActiveSession.tsx.

This description was created by Ellipsis for 58a0182. You can customize this summary. It will automatically update as commits are pushed.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Dec 22, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Contributor

@ellipsis-dev ellipsis-dev Bot left a comment

Choose a reason for hiding this comment

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

Important

Looks good to me! 👍

Reviewed everything up to 58a0182 in 52 seconds. Click for details.
  • Reviewed 12 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. humanlayer-wui/src/components/internal/SessionDetail/components/ActiveSession.tsx:238
  • Draft comment:
    Good fix to stop clearing input on fork cancel. However, since responseEditor is no longer referenced in handleForkCancel, please remove it from the dependency array.
  • Reason this comment was not posted:
    Comment was on unchanged code.

Workflow ID: wflow_Qhbtf2Rx4MfIR7B4

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

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.

[Bug]: Cancelling fork dialog with ESC clears input box

2 participants