Commit dbd5108
fix(punkcode): anomalyco#4 强制稳定经典布局让左右栏回来
根因:upstream 实验性 V2 新布局(newLayoutDesigns)默认值 =
VITE_OPENCODE_CHANNEL!=='prod',但 desktop renderer 构建从未注入
VITE_OPENCODE_CHANNEL → 恒 undefined → 默认恒 true → 桌面端跑进 V2 布局。
V2 在 layout.tsx 走「只渲染 main、不渲染左侧 project/session sidebar nav」
分支,且 session-header 把 search/fileTree/terminal/status 默认关掉,表现就是
「打开会话后左侧项目栏 + 右侧信息栏都没有」。
改动:
- branding.ts 新增 FORCE_STABLE_LAYOUT=true(PunkcodeAI 产品决策:用稳定经典布局)
- settings.tsx newLayoutDesignsDefault 在 FORCE_STABLE_LAYOUT 下钉死 false
- electron.vite.config.ts renderer define 注入 VITE_OPENCODE_CHANNEL(对齐 channel,
顺带修 titlebar channel 角标)
- 经典布局下新建会话走 NewSessionView,把它的小号 opencode Mark logo 一并脱敏成
PunkcodeAI 文字 logo(与 anomalyco#1 一致)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 1bc1bca commit dbd5108
4 files changed
Lines changed: 37 additions & 3 deletions
File tree
- packages
- app/src
- components/session
- context
- desktop
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| |||
0 commit comments