Skip to content

Release 1.0: course hub, chat KaTeX, selection float, pane drag fix - #16

Merged
taekchef merged 38 commits into
mainfrom
codex/release-1.0-integration
Jul 21, 2026
Merged

taekchef merged 38 commits into
mainfrom
codex/release-1.0-integration

Conversation

@taekchef

Copy link
Copy Markdown
Collaborator

Summary

  • Course Space Hub:文稿 | 对话 | 笔记三列,课程入口与学习记录分色归组
  • Agent 对话:完成态恢复 hang-proof KaTeX;选区浮层问/摘录与 PDF/MD/HTML 下划线
  • 分栏拖拽:PaneContentHostingView.mouseDownCanMoveWindow = false,对话顶栏重排不再拖走整窗

Test plan

  • ./script/build_and_run.sh check 通过
  • package 打开 dist/魏碑.app(build 495)
  • 悬停对话顶栏拖拽可换列,不拖整窗,不闪退
  • main 合并后本地再开一次确认

Made with Cursor

taekchef and others added 30 commits July 17, 2026 02:52
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.
taekchef and others added 8 commits July 21, 2026 05:59
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>
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