Skip to content

Conversation

@ariane-emory
Copy link
Contributor

Fixes regression where forking a session via /fork command or message dialog would not insert the selected message text into the prompt input box.

The issue was a timing problem where the createEffect that handles route.initialPrompt ran before the prompt ref was assigned during component initialization.

Now applies the initial prompt directly in the Prompt component's ref callback, which guarantees the prompt instance is available when setting the initial text.

Resolves issue where forked sessions started with empty prompt input boxes.

Resolves #7257.

Fixes regression where forking a session via /fork command or message dialog
would not insert the selected message text into the prompt input box.

The issue was a timing problem where the createEffect that handles
route.initialPrompt ran before the prompt ref was assigned during component
initialization.

Now applies the initial prompt directly in the Prompt component's ref callback,
which guarantees the prompt instance is available when setting the initial text.

Resolves issue where forked sessions started with empty prompt input boxes.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

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

No duplicate PRs found

@ariane-emory ariane-emory marked this pull request as ready for review January 7, 2026 22:05
@rekram1-node rekram1-node merged commit f243144 into anomalyco:dev Jan 7, 2026
3 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.

regression: Forked message text no longer reinserted.

2 participants