Skip to content

Conversation

@abeisleem
Copy link

@abeisleem abeisleem commented Jan 11, 2026

fixes #7541

fixed this fatal error when creating a new session would crash if you had prompt in the textarea.
prompt component in home.tsx is not defined onMount yet, now it handles the timing better and keeps your prompt text (tested with ctrl+x n) when moving to a new session. when selecting new session from the dialog the text is not always preserved.

note: #7702 fixes switched sessions & forks. this fix is for new sessions

before:

before.fix.mov

after:

after.fix.mov

@github-actions
Copy link
Contributor

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

Found a potential related PR:

PR #4878: "Fixed: prompt now preserved when creating new session"

This PR appears to address a very similar issue - preserving prompt text when creating a new session. While it's an older PR, it deals with the same core functionality that PR #7764 is fixing (preventing crashes and preserving prompt text during session transitions).

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.

opentui: fatal: undefined is not an object (evaluating 'input.setText')

1 participant