Skip to content

Conversation

@AdityaHegde
Copy link
Collaborator

Currently explain action on a measure just populates the chat input. To avoid another user action we should submit the chat directly.

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@AdityaHegde AdityaHegde added the blocker A release blocker issue that should be resolved before a new release label Dec 22, 2025
Comment on lines 74 to 75
editor.commands.setContent(prompt);
draftMessageStore.set(prompt);
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this draftMessageStore.set command is redundant to editor.commands.setContent. Is it necessary? Can you add a comment if so?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is to avoid having to wait for draftMessageStore to update. Will add a comment

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually it is not needed since I added tick. Removing it

@AdityaHegde AdityaHegde merged commit eb03a9c into main Dec 24, 2025
10 checks passed
@AdityaHegde AdityaHegde deleted the fix/auto-submit-explain-prompt branch December 24, 2025 05:26
AdityaHegde added a commit that referenced this pull request Dec 24, 2025
* fix: explain action not auto submitting prompt

* Fix lint

* Fix merge issue

* Remove redundant set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocker A release blocker issue that should be resolved before a new release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants