fix(knowledge): align cards and remove extra guidance

This commit is contained in:
鲨鱼辣椒 committed 2026-10-13 15:43:08 +08:00
1 parent c8ce94b778
commit 2899009215
27 files changed
+516 -100

No files matched your search

@@ -8,7 +8,7 @@
- Worktree: /Users/chillishark/Makelore 麦洛/.codex-worktrees/makelore/20261013-chat-knowledge-import-explain-ec03b792
- Base commit: c634425cc669f1da66e725649a386bf09661a70c
- Owner: codex
- Status: Ready for Integration
- Status: Planning
## Scope
@@ -75,3 +75,13 @@
- First activation held at preflight: route `#/cloud-agents?view=mine`, unsent input and beforeunload protection were true; no unsaved configuration, background lease or trusted interaction. Pointer/compat/Main were unchanged and Inspector was closed. User then explicitly answered 「允许清除这些输入并刷新」. Added a one-run authorization flag for existing inputs and beforeunload, retaining dialog, pending-file, running-work, lease and fresh-user-interaction guards. Electron's pinned declaration confirms the one-time will-prevent-unload handler permits only this authorized reload; no business-data deletion or cloud cancellation occurs. Separate authorization/helper rebind receipt retained.
- Final activation succeeded: current Renderer/effective source is 2d4e44f, Main remains 7c51bb4 / PID9968 / port58003, immutable current-stage and predecessor artifacts retained. Actual loaded JS/CSS match the new snapshot; same stable file URL, current route, profile, login, foreground PID1353 and closed Inspector verified. Application did not restore the cleared local input. `prepare.py --verify` independently reports active-verified.
- Root performed an additional read-only DOM probe: authenticated My Agents list settled with five cards, mounted app, original hash, no login form or visible alert, unchanged foreground and same Main. No names, credentials or input text were read/recorded, no account/Agent/file operation occurred. The original list does not display knowledge configuration; no forced navigation was made. Knowledge layout evidence is the tested source/fixtures at four widths and exact actual loaded Renderer assets, distinct from a live cloud knowledge ingestion test. Durable receipts are overlay-manifest.json, verification-receipt.json, live-dom-probe-receipt.json and retained preflight/helper-authorization evidence.
## Equal-height / Copy Follow-up
- Ownership/Planning Gates Passed on same-task resume: successful bundled start and exact task/feature/branch/worktree/base verified; active record and relevant current source/runtime read. Unchanged startup/domain/decisions/evidence context retained. All peer Scope/Intent/Promotion sections read-only. The active draft-conflict task has no defined scope yet; its unknown coordination state does not establish a concrete dependency for these CSS/copy edits. Avoid its dirty source.
- User explicitly requests the top left/right knowledge cards have matching height, deletes the full right-side 「使用说明与费用」 disclosure and content, and deletes both normal multi-select and save/apply/read-only description paragraphs. Keep the actual 100-library-limit message and underlying selection/save/processing behavior.
- Current verified deployed Renderer/effective source is 2cc542f under settings-account overlay, same Main PID9968/port58003. Preserve its latest committed homepage/settings/account changes when assembling the new update; no canonical/peer-doc changes. User's instruction to update the temporary application persists. The previous clear-input authorization was for the completed prior refresh, so fresh user changes remain protected.
- Plan: restore committed current product/test state where changed, keep the owned record; apply grid stretch and remove only requested prose/disclosure/unused exclusive style. Update focused existing tests/README, run knowledge suites/typecheck/lint/build and four-width fixture geometry. Prepare a fresh task-owned overlay using the proven previous helper and fresh current pointer; root activates after quiet-state protection, verifies actual loaded assets and records the result.
- Implementation complete: grid stretches both top cards to the same row height, including creation forms and document rows; narrow cards retain independent vertical flow. The entire right help disclosure and two requested selection paragraphs are removed, while the actual full-selection limit message remains conditional. Imported current 2cc product/test/README state has no knowledge conflict; independent review confirms Main/shared/resources/package identical to 7c.
- Verification: 6 knowledge/page/guidance/workflow unit files / 100 tests, 5 headless scenarios at 375/768/1024/1440, typecheck/full build/scoped 21-file ESLint and whitespace checks passed. Geometry assertions include empty, expanded creation and ready-document equal heights; root inspected the desktop screenshot. All 66 non-Renderer artifacts are byte-identical to immutable Main snapshot.
- Fresh stage knowledge-align-20261013-ec03b792 reuses prior guards with default input-discard authorization false, unique marker/temp names and fresh predecessor binding. It recognizes implicit fieldset knowledge groups, checks equal heights and removed copy, and restores an originally selected Advanced tab without changing any field. Saved configuration TEXTAREA values are excluded from unsent-input detection only when the visible fixed saved indicator and inactive beforeunload prove the configuration is saved; new creation/chat inputs and all real pending/dirty/interaction protections remain.