Skip to content

Commit c391f64

Browse files
author
CodeAI Hub Bot
committed
docs(session): record persistent localization bootstrap packaged release
1 parent ea018c8 commit c391f64

5 files changed

Lines changed: 81 additions & 65 deletions

File tree

doc/Sessions/Session033.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Session 033 — Persistent Localization Bootstrap Refactor
22

3-
**Date:** 2026-04-04 11:56 (CEST)
3+
**Date:** 2026-04-04 12:48 (CEST)
44
**Branch:** main
5-
**Version:** 1.1.881
5+
**Version:** 1.1.882
66

77
---
88

@@ -19,6 +19,9 @@
1919
- Finished the Project Manager bootstrap path: PM now fetches `/api/v1/localization/bootstrap` before `root.render(...)` and seeds both settings state and Help/UI localization from the persisted startup snapshot.
2020
- Synced the localization SSOT so the Modules/System docs describe browser bootstrap snapshots, injected Settings hydration, and PM pre-mount startup localization.
2121
- Refreshed the shipped webview bundle and completed the targeted verification pass required before the next packaged patch release.
22+
- Prepared release notes for `1.1.882`, ran `./scripts/build-all.sh`, and committed the unified version/manifests surface for the persistent localization bootstrap patch.
23+
- Built and verified the packaged VSIX with `./scripts/build-release.sh --use-current-version`; the resulting artefact is `codeai-hub-1.1.882.vsix`.
24+
- Archived the completed persistent-localization-bootstrap planning doc and execution TODO, then restored a clean placeholder `doc/TODO/todo-plan.md` for the next scope.
2225

2326
## Verification
2427
- `npm run build --workspace @codeai-hub/localization`
@@ -28,6 +31,8 @@
2831
- `npm run build:webview`
2932
- `npm run typecheck:webview`
3033
- `npm run build:project-manager`
34+
- `./scripts/build-all.sh`
35+
- `./scripts/build-release.sh --use-current-version`
3136

3237
## Git commits
3338
- `d7c921d8 docs(plan): define persistent localization bootstrap scope`
@@ -39,6 +44,9 @@
3944
- `87021691 fix(localization-bootstrap): hydrate project manager before mount`
4045
- `783e9f4e docs(architecture): sync persistent localization bootstrap ssot`
4146
- `ac939b58 build(webview): refresh localization bootstrap bundle`
47+
- `ad63ff0b docs(session): record persistent localization bootstrap verification`
48+
- `c04034d3 docs(release): prepare persistent localization bootstrap release notes`
49+
- `ea018c87 build(release): assemble persistent localization bootstrap release`
4250

4351
---
4452

@@ -48,13 +56,11 @@
4856
1. `doc/SolidWorks-WorkFlow/README.md`
4957
2. `doc/SolidWorks-WorkFlow/Docs_Index.md`
5058
3. `doc/SolidWorks-WorkFlow/System/SystemArchitecture.md`
51-
4. `doc/SolidWorks-WorkFlow/Plans/Persistent_Localization_Bootstrap_Architecture.md`
52-
5. `doc/TODO/todo-plan.md`
53-
6. `doc/Sessions/Session033.md` (THIS REPORT)
59+
4. `doc/TODO/todo-plan.md`
60+
5. `doc/Sessions/Session033.md` (THIS REPORT)
5461

55-
> Далее: после review этого отчета открыть `README.md`, `CHANGELOG.md` и активный `todo-plan.md`, затем завершить релизный cycle для persistent localization bootstrap.
62+
> Дополнительно: если потребуется вернуться к этому scope, открыть архивные `doc/SolidWorks-WorkFlow/Plans/Archive/Persistent_Localization_Bootstrap_Architecture.md` и `doc/TODO/Archive/todo-plan-up-to-phase4-persistent-localization-bootstrap-release-1.1.882-2026-04-04.md`.
5663
5764
## Plans for next session
58-
- Update `README.md` and `CHANGELOG.md` for the next patch release that ships persistent localization bootstrap.
59-
- Run `./scripts/build-all.sh` and `./scripts/build-release.sh --use-current-version`, then record the packaged verification outcome and version bump in this session report.
60-
- Hand the VSIX to the user for final cold-start validation in Project Manager and Settings WebView.
65+
- Start the next scope from a newly approved planning doc; there are no active execution streams left in `doc/TODO/todo-plan.md`.
66+
- Use `1.1.882` field feedback as input for any follow-up fixes around startup localization, packaging, or UX polish.

doc/SolidWorks-WorkFlow/Docs_Index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555

5656
### Plans (pre-implementation / non-SSOT)
5757
- `Plans/README.md` — правила жизненного цикла planning-доков.
58-
- `Plans/Persistent_Localization_Bootstrap_Architecture.md` — active refactor scope for startup-ready browser localization snapshots and no-English-flash cold start hydration.
5958
- `Plans/MultiProvider_Orchestration_Scenarios.md` — deferred orchestration scope, ещё не начатый в реализации.
6059
- `Plans/Runtime_GodModules_Decomposition_Architecture.md` — active structural decomposition wave для runtime hotspots и warning-zone governance.
6160
- `Plans/Archive/` — завершённые или снятые planning-доки, сохраняемые только как история.

doc/SolidWorks-WorkFlow/Plans/Persistent_Localization_Bootstrap_Architecture.md renamed to doc/SolidWorks-WorkFlow/Plans/Archive/Persistent_Localization_Bootstrap_Architecture.md

File renamed without changes.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# План разработки (Development TODO Plan)
2+
3+
## Правила выполнения (Execution Rules):
4+
- **Required reading (прочитать перед каждым фиксом):** `doc/SolidWorks-WorkFlow/Contracts/FacadeClassDiagram_DesignAndMaintenance.md`
5+
- Перед началом каждого stream открыть: `doc/SolidWorks-WorkFlow/Plans/Archive/Persistent_Localization_Bootstrap_Architecture.md`, `doc/SolidWorks-WorkFlow/Modules/Localization.md`, `doc/SolidWorks-WorkFlow/Modules/UI_Bundles.md`, `doc/SolidWorks-WorkFlow/System/SystemArchitecture.md`.
6+
- Каждая implementation-подзадача оформляется парой пунктов: (1) реализация/изменения, (2) отдельный пункт `Git Commit: ...`.
7+
- Каждая подзадача должна затрагивать не более 3 файлов; если scope разрастается, stream нужно дробить заново.
8+
- Любое изменение логики или архитектуры требует синхронного обновления связанных SSOT-доков в том же commit.
9+
- Статусы: `TODO`, `IN_PROGRESS`, `DONE`, `BLOCKED`.
10+
- Этот `TODO Plan` закрывает refactor persistent localization bootstrap: нужно убрать cold-start English flash в Settings WebView и Project Manager, переведя startup hydration на persisted user-space localization snapshots.
11+
12+
## Phase 0 — Planning Intake (owner: Docs, updated: 2026-04-04)
13+
### Stream: Persistent Bootstrap Scope
14+
1. [DONE] Record the persistent localization bootstrap refactor in a dedicated planning doc and refresh docs navigation so the next execution stream starts from one approved design reference. Scope: `doc/SolidWorks-WorkFlow/Plans/Archive/Persistent_Localization_Bootstrap_Architecture.md`, `doc/SolidWorks-WorkFlow/Docs_Index.md`, `doc/TODO/todo-plan.md`. Target commit: `docs(plan): define persistent localization bootstrap scope`
15+
2. [DONE] Git Commit: `docs(plan): define persistent localization bootstrap scope` (hash: `d7c921d8`)
16+
17+
## Phase 1 — Localization Snapshot Persistence (owner: Localization, updated: 2026-04-04)
18+
### Stream: User-Space Browser Bootstrap Snapshot
19+
3. [DONE] Add the canonical browser-bootstrap path, persistent store, and direct test entry for startup-ready localization payloads without relying on browser-memory cache. Scope: `packages/localization/src/localization-paths.ts`, `packages/localization/src/localization-runtime-bootstrap-store.ts`, `packages/localization/src/localization-runtime-bootstrap-store.test.ts`. Target commit: `feat(localization): add browser bootstrap snapshot store`
20+
4. [DONE] Git Commit: `feat(localization): add browser bootstrap snapshot store` (hash: `7a1acf30`)
21+
5. [DONE] Extend the localization facade so runtime payload resolution can load, refresh, and persist the assembled browser bootstrap snapshot deterministically. Scope: `packages/localization/src/localization-facade.ts`, `packages/localization/src/index.ts`, `packages/localization/src/localization-runtime-bootstrap-store.test.ts`. Target commit: `feat(localization): persist runtime bootstrap snapshots`
22+
6. [DONE] Git Commit: `feat(localization): persist runtime bootstrap snapshots` (hash: `b41911fc`)
23+
24+
## Phase 2 — Host And Core Delivery (owner: Extension/Core, updated: 2026-04-04)
25+
### Stream: Settings Webview Bootstrap Injection
26+
7. [DONE] Inject the persisted localization bootstrap payload into VS Code webview HTML before JS boot so settings surfaces no longer wait for async `settings:load` to localize first paint. Scope: `src/core/webview-module/webview-html-generator.ts`, `src/extension-module/home-view-provider.ts`, `src/extension-module/settings/localization-runtime-service.ts`. Target commit: `feat(localization-bootstrap): inject webview startup payload`
27+
8. [DONE] Git Commit: `feat(localization-bootstrap): inject webview startup payload` (hash: `29b42703`)
28+
29+
### Stream: Project Manager Bootstrap Endpoint
30+
9. [DONE] Expose one read-only core HTTP endpoint backed by the persisted localization bootstrap snapshot so Project Manager can preload localized startup data before React mount. Scope: `packages/core/src/remote-bridge/handlers/http-api-router.ts`, `packages/core/src/remote-bridge/handlers/localization-bootstrap-http-handler.ts`, `packages/core/src/remote-bridge/index.ts`. Target commit: `feat(localization-bootstrap): expose pm bootstrap endpoint`
31+
10. [DONE] Git Commit: `feat(localization-bootstrap): expose pm bootstrap endpoint` (hash: `158b6cf4`)
32+
33+
## Phase 3 — Browser Startup Hydration (owner: UI/PM, updated: 2026-04-04)
34+
### Stream: Settings Webview First Paint
35+
11. [DONE] Seed the settings-only webview from the injected bootstrap payload and treat later `settings:loaded` messages as background revalidation rather than first-paint localization. Scope: `src/client/ui/src/app-host/localization-runtime-contract.ts`, `src/client/ui/src/index.tsx`, `src/client/ui/src/components/settings/use-settings-state.ts`. Target commit: `fix(localization-bootstrap): hydrate settings webview from startup payload`
36+
12. [DONE] Git Commit: `fix(localization-bootstrap): hydrate settings webview from startup payload` (hash: `a5e9ca06`)
37+
38+
### Stream: Project Manager First Paint
39+
13. [DONE] Load the PM localization bootstrap payload before `root.render(...)` and initialize PM settings/runtime state from it so Help/UI no longer flash English on cold start. Scope: `src/client/project-manager/index.tsx`, `src/client/project-manager/services/localization-bootstrap.ts`, `src/client/project-manager/components/settings/use-project-manager-settings.ts`. Target commit: `fix(localization-bootstrap): hydrate project manager before mount`
40+
14. [DONE] Git Commit: `fix(localization-bootstrap): hydrate project manager before mount` (hash: `87021691`)
41+
42+
## Phase 4 — SSOT Sync And Verification (owner: Docs/QA, updated: 2026-04-04)
43+
### Stream: Architecture Sync
44+
15. [DONE] Sync the live SSOT so Localization, UI bundles, and system architecture describe persistent startup snapshots, injected webview bootstrap, and PM pre-mount hydration. Scope: `doc/SolidWorks-WorkFlow/Modules/Localization.md`, `doc/SolidWorks-WorkFlow/Modules/UI_Bundles.md`, `doc/SolidWorks-WorkFlow/System/SystemArchitecture.md`. Target commit: `docs(architecture): sync persistent localization bootstrap ssot`
45+
16. [DONE] Git Commit: `docs(architecture): sync persistent localization bootstrap ssot` (hash: `783e9f4e`)
46+
47+
### Stream: Verification And Release Handoff
48+
17. [DONE] Refresh the shipped Settings webview bundle so the packaged extension includes startup bootstrap hydration on first paint. Scope: `media/react-chat.js`. Target commit: `build(webview): refresh localization bootstrap bundle`
49+
18. [DONE] Git Commit: `build(webview): refresh localization bootstrap bundle` (hash: `ac939b58`)
50+
19. [DONE] Run targeted verification for localization/core/webview/project-manager and record the validated bootstrap behavior in the active session report before the next packaged release. Scope: `@codeai-hub/localization`, `@codeai-hub/core`, webview/project-manager builds, `doc/Sessions/Session033.md`. Target commit: `docs(session): record persistent localization bootstrap verification`
51+
20. [DONE] Git Commit: `docs(session): record persistent localization bootstrap verification` (hash: `ad63ff0b`)
52+
21. [DONE] Prepare release-facing docs for the persistent localization bootstrap patch so `README.md` and `CHANGELOG.md` already point at the next packaged version before any version bump/build scripts run. Scope: `README.md`, `CHANGELOG.md`. Target commit: `docs(release): prepare persistent localization bootstrap release notes`
53+
22. [DONE] Git Commit: `docs(release): prepare persistent localization bootstrap release notes` (hash: `c04034d3`)
54+
23. [DONE] Run `./scripts/build-all.sh` and commit the version/manifests surface on a clean tree before VSIX packaging. Scope: release-generated version files/manifests. Target commit: `build(release): assemble persistent localization bootstrap release`
55+
24. [DONE] Git Commit: `build(release): assemble persistent localization bootstrap release` (hash: `ea018c87`)
56+
25. [DONE] Run `./scripts/build-release.sh --use-current-version`, archive the completed bootstrap planning/todo docs, record the packaged VSIX outcome in `Session033.md`, and finish the session closeout with the released version. Scope: `doc/Sessions/Session033.md`, `doc/TODO/Archive`, `doc/SolidWorks-WorkFlow/Plans/Archive`, packaged release verification outputs. Target commit: `docs(session): record persistent localization bootstrap packaged release`
57+
26. [TODO] Git Commit: `docs(session): record persistent localization bootstrap packaged release` (hash: TBD)

0 commit comments

Comments
 (0)