Skip to content

Opens summary before AI result #4489

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: 4449-feedback-provider
Choose a base branch
from

Conversation

sergeibbb
Copy link
Member

@sergeibbb sergeibbb commented Jul 14, 2025

Description

Solves #4328

  • Updates AI provider methods to return the used model before the request is finished. The model is used to form partial document context.
  • Stores partial context in URI that is enough to identify the document and to re-generate the content if it's needed.
  • Stores the usage part of the context in memory that is used for sending feedback.
  • Introduces a blinking hack to the markdown.ts in order to fight VSCode's caching of views (rewriting using the FileSystemProvider didn't help, but it can be reviewed here: 8c365a8

Checklist

  • I have followed the guidelines in the Contributing document
  • My changes follow the coding style of this project
  • My changes build without any errors or warnings
  • My changes have been formatted and linted
  • My changes include any required corresponding changes to the documentation (including CHANGELOG.md and README.md)
  • My changes have been rebased and squashed to the minimal number (typically 1) of relevant commits
  • My changes have a descriptive commit message with a short title, including a Fixes $XXX - or Closes #XXX - prefix to auto-close the issue that your PR addresses

sergeibbb added a commit that referenced this pull request Jul 14, 2025
sergeibbb added a commit that referenced this pull request Jul 14, 2025
Addresses issues where markdown previews may display corrupted or
outdated content
by detecting tab visibility changes and forcing content recovery for
affected documents.
Improves reliability of previews when switching tabs or reopening custom
editors.
(#4328, #4489)
sergeibbb added a commit that referenced this pull request Jul 14, 2025
sergeibbb added a commit that referenced this pull request Jul 14, 2025
Thats because we cannot modify URI of document to review context after
the result is rendered.
(#4328, #4489)
@sergeibbb sergeibbb force-pushed the feature/4328-open-summary-before-result branch from c1137a2 to 20ca261 Compare July 14, 2025 10:58
sergeibbb added a commit that referenced this pull request Jul 14, 2025
@sergeibbb sergeibbb force-pushed the 4449-feedback-provider branch from 1f08c2d to f851fe3 Compare July 14, 2025 14:07
Addresses issues where markdown previews may display corrupted or
outdated content
by detecting tab visibility changes and forcing content recovery for
affected documents.
Improves reliability of previews when switching tabs or reopening custom
editors.
(#4328, #4489)
Thats because we cannot modify URI of document to review context after
the result is rendered.
(#4328, #4489)
@sergeibbb sergeibbb force-pushed the feature/4328-open-summary-before-result branch from 20ca261 to 04d5300 Compare July 14, 2025 14:08
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