Repository navigation
Release 1.0: course hub, chat KaTeX, selection float, pane drag fix - #16
Merged
Merged
Conversation
feat: 实现课程抽屉与开放关系台
Combine course-library architecture (631b2dc) with hardened rich answer evidence architecture (91eb854). Resolve verification scenario routing so course and rich-answer paths coexist. Also close two pre-existing rich-answer self-check gaps that blocked the integrated line: gate replay markers on host size + renderer readiness (rendererIsReady), and align system prompt T1/T2 wording with assertions.
Finalize the compact top bar as constants (height 38, spacing 7, control 28, icon 24, paper 0.80, material 0.09, single-line brand). Delete TopBarVariant, store state, settings selector, and gear-menu section. Sync SelfCheck assertions to the locked chrome.
Keep immersive conversation (layout) and selection-float overlay; remove bottom drawer, corner ask, and quiet-insight surfaces with their views, menu/command-palette entries, and Control-Option 1/2/4 shortcuts. Default agentSurface is hidden. Legacy persisted surfaces decode to hidden. Quiet insight no longer schedules background API generation. Focusing chat in immersive reading/writing opens immersive conversation. SelfCheck assertions updated for the converged entry state machine.
Workspace settings no longer switch among six layout presets. Column layout stays driven by pane toggles and drag-reorder; immersive modes remain on menu/palette shortcuts. workspaceLayout stays a legacy read path for older workspaces.
Keep the course-index selected LibraryRow focus bar. Soften or remove rename bars, course group bars, pane-drag marks, assistant/stream leading capsules, course-linked selection marks, and relation-paper node markers. Credential notices keep link-blue affordance only.
Assistant turns no longer use a leading cinnabar capsule; only credential notices keep the link-blue mark. Update the SelfCheck source slice accordingly.
Add AgentFailureKind with bilingual user-facing titles and guidance for network, 401/429/5xx, timeout, cancel, and generic cases. OpenAI HTTP uses a 60s request timeout; Pi run inactivity watchdog is 90s and maps to commandTimedOut. Failure bubbles expose Retry and Restore-question; cancel also aborts the Pi runtime.
Support openai/anthropic/google/openrouter/custom providers with per-provider keychain accounts, optional Base URL injection via Pi models.json, and OpenAI HTTP fallback only for openai. Overview becomes connection/data/about; shortcuts list expands; legal copy stays deferred.
StudySession gains materialItemID for scheme-A grouping. Switching materials hangs the current conversation and activates the material's latest session instead of clearing messages. Session menu uses a clock entry, New Conversation, View All / By Current Material, grouped lists, and delete.
Replace the plain three-dot pulse with selectable styles: ink dots, brush stroke, and seal pulse. Ship a loading-indicator-samples verification board and capture evidence for user selection. Default remains ink dots until a style is chosen.
User selected 朱砂墨点 (A). PERF probes measure workspace.save/select under final scenarios; samples stay under hang threshold so no behavior-changing perf patch is applied. Evidence in Docs/release-evidence.
Collect final check/package logs, real-window verification captures, and performance P0 report. Signal READY_FOR_PRE_RELEASE_REVIEW without formal release closeout, push, or VERSION bump.
workspace.save() used to run a full JSON encode on almost every UI mutation (~75 call sites). Debounce normal saves by 280ms and flush immediately for verification, note durability, app resign, and quit. This targets interaction jank without changing visible behavior.
Replace three-dot pulse card with in-stream status text and a short cinnabar orbit segment driven by agentActivityText. First pass reveals ink and sweeps under the line; then continuous clockwise orbit. Streaming tokens immediately remove the indicator. Reduce Motion shows static status only. Sync SelfCheck and capture paper/ink evidence.
Native multi-frame captures for paper and inkstone loading motion, plus measured status text widths for Chinese and English.
Stop agent ScrollView sizeThatFits thrash by keeping GeometryReader off the scroll ancestry, simplify rich-answer clipping, and keep the V3 cinnabar orbit equidistant from loading text. Also harden library drawer / three-pane open behavior and agent chat layout metrics for immersive conversation.
…e UX - Agent settings: multi-profile credentials, API key + subscription console flows (OpenAI/Anthropic/Google/OpenRouter), provider-specific help text - Top bar: replace mini gear menu with openSettings on the right (slider icon) - Settings: drop thrashy section animation; move document-color adapt into Reading - Chat hover catalog for material/practice session history - Course records simplified to jump-into-chat; thinner relation edges; less graph thrash - Note success toast uses transientNoteStatus so it auto-dismisses without sticking
Wire subscription auth to the same browser OAuth flow as Pi /login for ChatGPT Plus/Pro (openai-codex) and Claude Pro/Max, writing tokens to ~/.pi/agent/auth.json and merging them into the agent runtime config. Relation paper falls back to dual lists when sides are unbalanced and uses thinner edge strokes for a quieter diagram.
Wire every Pi-supported provider into configurable profiles: subscription OAuth (Codex/Claude/Copilot), all API-key providers from env-api-keys (including Moonshot), and local/custom OpenAI-compatible endpoints. Settings menus are sectioned; env injection, Azure base URL, and host cloud credentials pass through to the Pi runtime.
Revert the dual-list fallback for unbalanced sides and the thin grey edge styling. Bring back accent-colored impact edges, haze, node caps, and hover/panel motion so the relation paper matches the creative graph again.
The width PreferenceKey defaulted to 960 and took max(), so multi-pane strips were laid out as full-window columns (mis-centered text, fixed-size header). Immersive also snapped small when host re-attach reported the old strip width. Measure live pane width, seed/protect immersive 880×88 layout, adapt the chat header to strip width, and keep message viewport tall.
…chat Hide long material/section source strings on user and assistant turns. Parse Pi bracket citations into typed tappable tags (material, note, selection, study record/memory) with jump actions. Widen immersive reading column and raise the composer so the chat column matches the intended large layout.
Widen immersive reading/composer (1400×132) so the column fills the pane instead of a skinny centered strip. Make openSourceReference leave immersive chat for reading/writing, and resolve agent material tags via fuzzy title match plus openAgentCitation so green 材料 tags open the document like study-record tags already do.
Keep the floating selection agent open while answers stream, expand it into a full scrollable Q&A surface, and record selection-ask threads so underlined HTML marks reopen that float. Also widen immersive chat to 1600×148 so the composer is no longer a compact strip.
Expand “问” into a composer without preset prompts or auto-send, keep pinned floats across selection updates, draw cinnabar ask underlines on PDF/Markdown/HTML, and refresh the float chrome with matching SelfCheck coverage. Co-authored-by: Cursor <cursoragent@cursor.com>
Add the course-space hub (文稿|对话|笔记), restore hang-proof KaTeX for finished agent turns, and stop chat header drags from moving the window by matching divider behavior with PaneContentHostingView. Co-authored-by: Cursor <cursoragent@cursor.com>
Closed
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.
Summary
PaneContentHostingView.mouseDownCanMoveWindow = false,对话顶栏重排不再拖走整窗Test plan
./script/build_and_run.sh check通过dist/魏碑.app(build 495)Made with Cursor