feat(trial): assemble completed Agent workspace updates

This commit is contained in:
鲨鱼辣椒 committed 2026-10-13 12:11:56 +08:00
1 parent 8289f27f3e
commit 7c51bb4a00
38 files changed
+2081 -276

No files matched your search

@@ -0,0 +1,65 @@
# Task: Update trial application with completed Agent and homepage changes
## Identity
- Task ID: 20261013-combined-trial-update-c42d19a7
- Mode: Feature
- Branch: codex/20261013-combined-trial-update-c42d19a7-combined-trial-update
- Worktree: /Users/chillishark/Makelore 麦洛/.codex-worktrees/makelore/20261013-combined-trial-update-c42d19a7
- Base commit: 8289f27f3e53ef455b656f1c43d2620d235d5014
- Owner: codex
- Status: Planning
## Scope
- Assemble and validate completed homepage and Agent changes, then update the existing local temporary application with both Main and Renderer while retaining its profile and login.
- Keep the current temporary application as the target; no production backend deployment, repository push, primary checkout change or worktree cleanup.
## Project Context Loaded
- Task ID / mode: 20261013-combined-trial-update-c42d19a7 / feature; exact registry match verified after successful isolated start.
- Branch / worktree / base: codex/20261013-combined-trial-update-c42d19a7-combined-trial-update; this Identity path; 8289f27f3e53ef455b656f1c43d2620d235d5014.
- Concurrent and Planning Gates: Passed. Primary main is occupied by teacher integration and has an unrelated modified record; leave it untouched. Feature mode assembles product code and owns only this task record; do not promote canonical docs or edit source task records.
- Read: startup instructions, planning gate, this task record; retained previously read memory-index, positioning, current-state, decision-index, system-overview, business rules and success criteria at this base. Read fetched main's ADR/current-state/data-flow/decision-index delta, evidence index, commitments/stale items, and linked chat Agent-待更新.
- Peer scopes: independent read-only review checked all 31 peer records. Ready knowledge c634425 and create-recovery 21852fb are compatible. Old teacher/Alice changes are already present or superseded; undefined old release/child-language tasks and Canvas investigation have no releasable product code.
- Product goal/current focus: single light Electron workspace, independent personal Agent creation/configuration/chat, explicit channel binding, selected knowledge and safe conversation process rendering.
- Sources: base retains Robot-home hiding 13336cf and channel hint 8289f27; fetched origin/main bf39f40 includes message/tool rendering 70a3212 and capability copy 821fd6f; knowledge c634425; create recovery 21852fb with compatibility-only record 66c49c9.
- Decisions: latest accepted personal-cloud-Agent ADR supersedes purpose wizard/embedded trial/access navigation. Main owns credentials and safe history projection; explicit publish/channel enablement, request identities, owner isolation and billing remain.
- Evidence/unknowns: current Main PID 7459, port 62864, original entry-nav stage and profile .trial-runtime/user-data; active Renderer be53e44, product Main predates fetched updates. History/capability labels require matching Yuxi; compatibility audit says deployed-source purpose still requires nonempty text. Client update does not deploy that backend or resolve the empty-introduction contract. No paid-call validation.
- Likely files: CloudChat/message stream, knowledge workspace/picker, creation/recovery, cloud-agent Main projection/service/journal, README, relevant tests and runtime manifests. README and shared tests require semantic combination.
## Intent And Constraints
- User now explicitly authorizes updating the temporary application and combining eligible completed changes, revoking the prior no-update instruction for this task.
- Retain login/profile and avoid switching desktop focus; do not send messages, create real Agents, import real files or use paid generation during verification.
- Stage and verify a complete build before replacing the runtime. Main changed, so a Renderer-only refresh is insufficient. Preserve a rollback path and check current activity before a bounded background restart.
- Import source product patches and their tests; keep upstream/source project-doc records read-only. Record provenance here instead of canonical reconciliation.
## Plan
1. Combine latest main product changes, knowledge workspace and create recovery with the base's homepage/channel improvements; resolve only verified compatible conflicts.
2. Verify combined unit/type/lint/build and fixture Electron scenarios, covering the changed screens and Main contracts.
3. Prepare a durable runtime stage, preserve the current profile/window state and replace Main/Renderer together in the background; verify loaded source/bytes, local health and visible entries without real writes.
4. Commit source and this handoff record, save verified runtime provenance, and report updated scope plus material backend limits.
## Outcome
- Product assembly complete: retained base homepage/channel changes, applied bf39f40 product delta, knowledge c634425 and creation 21852fb without modifying their source task/canonical records. Runtime deployment pending.
- 22 changed product files match exact accepted source commit blobs; README combines all current behaviors. The only test conflict combined the knowledge static harness with main's normalized cross-platform import paths.
## Verification
- Pinned pnpm 10.33.4: 24 focused unit files / 406 tests passed; typecheck and complete build:vite passed.
- Scoped ESLint 35 TypeScript files passed with 0 errors; 2 existing CloudChat warnings retained.
- Combined UI suite: 50 passed, 1 historical Code navigation assertion failed. Targeted retry reproduces only the same mismatch (brand 46px vs inner tablist 32px). Independent review verified d787267 introduced the inner-tab layout on Sept 30 without updating this assertion; Code CSS/page/Sidebar/test blobs are identical to base. All updated Agent and homepage scenarios passed. Do not weaken the test or change unrelated product code in this task.
- Source composition and `git diff --check` passed; task documentation ownership drift passed.
- Runtime snapshot, hidden probe and actual application switch remain pending.
## Follow-ups
- Historical Code navigation E2E compares brand against inner tablist height; review the assertion against the existing toolbar contract in a separate scoped task.
- A client update does not deploy Yuxi history/capability/empty-introduction support; preserve these known backend limits.
## Promotion Candidates
- None recorded.