Repository navigation
Optimize Playground rendering and sync system instruction presets - #88
Merged
Mag1cFall merged 1 commit intoOct 29, 2026
Merged
Conversation
Contributor
Author
paralax034
force-pushed
the
playground-perf-and-instructions
branch
from
October 29, 2026 16:40
f036c5e to
bd6c40f
Compare
Contributor
Author
|
Update |
paralax034
force-pushed
the
playground-perf-and-instructions
branch
from
October 29, 2026 16:59
410ecc5 to
bd6c40f
Compare
…ystem instructions
Contributor
Author
|
Fix formatting |
Contributor
Author
@Mag1cFall , do you think this aligns with the project's design and architectural style? If so, I’d be happy to create a separate PR for this! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


改动 / Changes
CodeBlock.vueby splitting stable highlighted prefixes from the active tail and skipping grid collapse transitions/unmounting collapsed DOM nodes on large code blocks.markRawinmarkdown.tsand memoize rendered VNodes inMarkdownBlock.ts.ChatTurn.vue:has()selectors to direct.actions-containerchildren, replace full-subtree:has(.ms-code-block .code-header.sticky)matching with a reactivehas-codeclass, read the latest batch entry (entries.at(-1)) inIntersectionObserverandResizeObserver, and applycontain: layout styleto prevent UI freezes on menu/action clicks and fast scrolling.systemInstructionwhen resetting to/prompts/new_chat, allow saving prompts with system instructions before the first turn, and persist system instruction presets inpromptdb(GET/PUT/api/prompts/system-instructions) so presets stay synced across the desktop window and browsers.验证 / Verification
cd web && npm run lint && npm run format:check && npm run buildgo vet ./...go test -mod=readonly ./cmd/... ./internal/...