codexmate 0.1.31 → 0.1.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +8 -3
  2. package/README.vi.md +8 -3
  3. package/README.zh.md +8 -3
  4. package/cli/agents-files.js +18 -4
  5. package/cli/claude-proxy.js +2 -2
  6. package/cli/plugin-config.js +64 -0
  7. package/cli/prompt-history.js +19 -4
  8. package/cli/system-prompt-files.js +7 -2
  9. package/cli.js +200 -214
  10. package/lib/cli-config-engine.js +15 -4
  11. package/lib/cli-file-utils.js +6 -1
  12. package/lib/config-change-fs.js +132 -0
  13. package/lib/config-changes.js +293 -0
  14. package/lib/handoff-mcp.js +18 -2
  15. package/lib/local-feature-store.js +39 -0
  16. package/lib/session-bookmarks.js +72 -0
  17. package/lib/session-context-health.js +102 -0
  18. package/lib/session-context-records.js +153 -0
  19. package/lib/session-diagnostics.js +75 -0
  20. package/lib/session-feature-settings.js +21 -0
  21. package/lib/session-features.js +63 -0
  22. package/lib/session-handoff-draft.js +43 -0
  23. package/lib/session-projects.js +76 -0
  24. package/lib/session-search-index.js +188 -0
  25. package/lib/thread-handoff.js +8 -0
  26. package/lib/web-server.js +216 -0
  27. package/lib/web-startup-auth.js +5 -1
  28. package/package.json +1 -1
  29. package/plugins/prompt-templates/computed.mjs +3 -3
  30. package/plugins/prompt-templates/invocation.mjs +73 -0
  31. package/plugins/prompt-templates/methods.mjs +48 -3
  32. package/plugins/prompt-templates/overview.mjs +2 -0
  33. package/web-ui/app.js +32 -1
  34. package/web-ui/index.html +2 -0
  35. package/web-ui/logic.context-health.mjs +144 -0
  36. package/web-ui/logic.context-window.mjs +15 -0
  37. package/web-ui/modules/api.mjs +72 -39
  38. package/web-ui/modules/app.computed.prompts.mjs +11 -0
  39. package/web-ui/modules/app.methods.agents.mjs +25 -3
  40. package/web-ui/modules/app.methods.claude-config.mjs +2 -0
  41. package/web-ui/modules/app.methods.codex-config.mjs +9 -0
  42. package/web-ui/modules/app.methods.config-changes.mjs +124 -0
  43. package/web-ui/modules/app.methods.index.mjs +4 -0
  44. package/web-ui/modules/app.methods.kilocode-config.mjs +2 -0
  45. package/web-ui/modules/app.methods.openclaw-persist.mjs +2 -0
  46. package/web-ui/modules/app.methods.opencode-config.mjs +2 -0
  47. package/web-ui/modules/app.methods.pi-config.mjs +12 -3
  48. package/web-ui/modules/app.methods.provider-cache.mjs +9 -3
  49. package/web-ui/modules/app.methods.providers.mjs +6 -0
  50. package/web-ui/modules/app.methods.startup-claude.mjs +8 -47
  51. package/web-ui/modules/app.methods.system-prompt.mjs +17 -2
  52. package/web-ui/modules/config-change-actions.mjs +9 -0
  53. package/web-ui/modules/context-health.methods.mjs +70 -0
  54. package/web-ui/modules/i18n/locales/en.mjs +164 -4
  55. package/web-ui/modules/i18n/locales/ja.mjs +164 -4
  56. package/web-ui/modules/i18n/locales/vi.mjs +164 -4
  57. package/web-ui/modules/i18n/locales/zh-tw.mjs +164 -4
  58. package/web-ui/modules/i18n/locales/zh.mjs +164 -4
  59. package/web-ui/modules/plugins.methods.mjs +2 -0
  60. package/web-ui/modules/prompt-ecosystem.methods.mjs +136 -0
  61. package/web-ui/modules/request-deadline.mjs +33 -0
  62. package/web-ui/modules/session-features.mjs +279 -0
  63. package/web-ui/modules/thread-handoff.mjs +1 -1
  64. package/web-ui/partials/index/config-changes.html +25 -0
  65. package/web-ui/partials/index/context-health.html +45 -0
  66. package/web-ui/partials/index/context-window-reference.html +17 -0
  67. package/web-ui/partials/index/layout-header.html +7 -30
  68. package/web-ui/partials/index/modal-openclaw-config.html +0 -2
  69. package/web-ui/partials/index/modal-prompt-invocation.html +17 -0
  70. package/web-ui/partials/index/modal-skills.html +0 -1
  71. package/web-ui/partials/index/modals-basic.html +0 -8
  72. package/web-ui/partials/index/modals-pi-provider.html +0 -1
  73. package/web-ui/partials/index/panel-config-codex.html +0 -3
  74. package/web-ui/partials/index/panel-config-openclaw.html +16 -13
  75. package/web-ui/partials/index/panel-dashboard.html +0 -2
  76. package/web-ui/partials/index/panel-plugins.html +37 -10
  77. package/web-ui/partials/index/panel-prompts.html +18 -3
  78. package/web-ui/partials/index/panel-sessions.html +23 -11
  79. package/web-ui/partials/index/panel-settings.html +1 -12
  80. package/web-ui/partials/index/panel-trash.html +0 -1
  81. package/web-ui/partials/index/session-diagnostics.html +29 -0
  82. package/web-ui/partials/index/session-features.html +107 -0
  83. package/web-ui/partials/index/thread-handoff.html +6 -3
  84. package/web-ui/res/web-ui-render.precompiled.js +1863 -271
  85. package/web-ui/styles/config-changes.css +30 -0
  86. package/web-ui/styles/context-health.css +107 -0
  87. package/web-ui/styles/openclaw-structured.css +205 -189
  88. package/web-ui/styles/prompts-editor.css +23 -0
  89. package/web-ui/styles/session-features.css +148 -0
  90. package/web-ui/styles/sessions-preview.css +21 -0
  91. package/web-ui/styles/sub-tabs.css +181 -0
  92. package/web-ui/styles.css +5 -1
@@ -0,0 +1,148 @@
1
+ .session-features {
2
+ --feature-surface: var(--color-surface-alt);
3
+ --feature-duration: 160ms;
4
+ --feature-ease: cubic-bezier(0.16, 1, 0.3, 1);
5
+ margin: var(--spacing-sm) 0;
6
+ min-width: 0;
7
+ color: var(--color-text-primary);
8
+ font-family: var(--font-family-body);
9
+ }
10
+ /* Match neighboring controls, including their one-pixel container border. */
11
+ #panel-sessions .session-features { box-sizing: border-box; margin-inline: 1px; padding-inline: 10px; }
12
+ #panel-sessions .feature-tabs button { padding-inline: 10px; }
13
+ #panel-settings .feature-diagnostics { box-sizing: border-box; margin-inline: 1px; padding-inline: var(--spacing-md); }
14
+ .feature-toolbar, .feature-section-heading, .feature-record-heading {
15
+ display: flex;
16
+ align-items: center;
17
+ justify-content: space-between;
18
+ gap: var(--spacing-xs);
19
+ min-width: 0;
20
+ }
21
+ .feature-toolbar { flex-wrap: wrap; padding-block: 4px; }
22
+ .feature-tabs { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; }
23
+ .feature-tabs button {
24
+ flex: 0 0 auto;
25
+ min-height: 44px;
26
+ padding: 8px 16px;
27
+ border: 0;
28
+ border-radius: var(--radius-sm);
29
+ background: transparent;
30
+ color: var(--color-text-secondary);
31
+ font: inherit;
32
+ font-size: var(--font-size-secondary);
33
+ cursor: pointer;
34
+ }
35
+ .feature-tabs button[aria-expanded="true"] { background: var(--feature-surface); color: var(--color-text-primary); font-weight: 600; }
36
+ .feature-actions, .feature-record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-xs); }
37
+ .feature-actions input, .feature-actions select { flex: 1 1 200px; min-width: 0; max-width: 100%; }
38
+ .session-features input:not([type="checkbox"]), .session-features select, .session-features textarea,
39
+ .context-window-reference input, .context-window-reference select {
40
+ box-sizing: border-box;
41
+ width: 100%;
42
+ min-width: 0;
43
+ min-height: 44px;
44
+ padding: 8px 12px;
45
+ border: 1px solid var(--color-border-strong);
46
+ border-radius: var(--radius-sm);
47
+ background: var(--color-surface);
48
+ color: var(--color-text-primary);
49
+ font: inherit;
50
+ font-size: max(16px, var(--font-size-body));
51
+ }
52
+ .session-features button, .context-window-reference button, .session-feature-controls button {
53
+ min-height: 44px;
54
+ max-width: 100%;
55
+ transition: color var(--feature-duration, 160ms) var(--feature-ease, ease-out), background-color var(--feature-duration, 160ms) var(--feature-ease, ease-out), opacity var(--feature-duration, 160ms) var(--feature-ease, ease-out);
56
+ }
57
+ .session-features .feature-primary { background: var(--color-text-primary); color: var(--color-surface); border-color: transparent; }
58
+ .session-features .feature-primary:not(:disabled):hover { background: var(--color-text-secondary); }
59
+ .session-features .feature-quiet, .context-window-reference .feature-quiet { border-color: transparent; background: transparent; color: var(--color-text-secondary); }
60
+ .session-features button:not(:disabled):hover, .feature-link-list button:not(:disabled):hover { background: var(--feature-surface); color: var(--color-text-primary); }
61
+ .session-features button:not(:disabled):active, .context-window-reference button:not(:disabled):active { opacity: 0.76; }
62
+ .session-features button:disabled, .context-window-reference button:disabled { cursor: not-allowed; opacity: 0.45; }
63
+ .session-features :is(button, input, select, textarea, summary):focus-visible,
64
+ .context-window-reference :is(button, input, select, summary):focus-visible,
65
+ .session-feature-controls :is(button, input):focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
66
+ .feature-content { padding: var(--spacing-md) 0 var(--spacing-xs); min-width: 0; }
67
+ .feature-section-heading { margin-bottom: var(--spacing-sm); flex-wrap: wrap; }
68
+ .feature-section-heading h3 { margin: 0; font-size: var(--font-size-title); font-weight: 600; }
69
+ .feature-section-heading h4, .feature-record-heading h4 { margin: 0; font-size: var(--font-size-body); font-weight: 600; }
70
+ .feature-hint, .feature-issue, .feature-note { max-width: 72ch; margin: 8px 0; line-height: 1.65; }
71
+ .feature-hint { color: var(--color-text-secondary); font-size: var(--font-size-secondary); }
72
+ .feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--color-text-muted); font-size: var(--font-size-secondary); overflow-wrap: anywhere; }
73
+ .feature-source { color: var(--color-text-secondary); font-size: var(--font-size-secondary); font-weight: 600; }
74
+ .feature-path { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text-muted); font-size: var(--font-size-secondary); }
75
+ .feature-search-form { margin-top: var(--spacing-sm); }
76
+ .feature-disclosure { margin-top: 12px; min-width: 0; }
77
+ .feature-disclosure > summary { width: fit-content; max-width: 100%; min-height: 44px; display: list-item; align-content: center; cursor: pointer; color: var(--color-text-secondary); font-size: var(--font-size-secondary); overflow-wrap: anywhere; }
78
+ .feature-disclosure[open] > summary { color: var(--color-text-primary); }
79
+ .feature-record { padding: var(--spacing-md) 0; overflow-wrap: anywhere; min-width: 0; }
80
+ .feature-record + .feature-record { border-top: 1px solid var(--color-border-soft); }
81
+ .feature-record-heading { margin-bottom: 8px; }
82
+ .feature-record-heading h4 { min-width: 0; overflow-wrap: anywhere; }
83
+ .feature-record pre, .feature-focus pre, .feature-code { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow: auto; line-height: 1.6; }
84
+ .feature-excerpt { max-width: 72ch; margin: var(--spacing-sm) 0; font-family: var(--font-family-body); font-size: var(--font-size-body); }
85
+ .feature-code, .feature-disclosure pre { padding: 12px; border-radius: var(--radius-sm); background: var(--feature-surface, var(--color-surface-alt)); font-family: var(--font-family-mono); font-size: var(--font-size-secondary); }
86
+ .feature-note { color: var(--color-text-secondary); }
87
+ .feature-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0; }
88
+ .feature-tag, .feature-count { font-size: var(--font-size-secondary); color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
89
+ .feature-tag { padding: 4px 8px; border-radius: 4px; background: var(--feature-surface); }
90
+ .feature-count { flex-shrink: 0; }
91
+ .feature-record-actions { margin-top: var(--spacing-xs); }
92
+ .feature-editor { display: grid; gap: var(--spacing-sm); max-width: 72ch; margin-top: var(--spacing-md); }
93
+ .feature-editor label, .feature-filter-fields label, .feature-window-fields label { display: grid; gap: 8px; min-width: 0; color: var(--color-text-secondary); font-size: var(--font-size-secondary); }
94
+ .feature-editor textarea { min-height: 104px; resize: vertical; }
95
+ .feature-filter-fields, .feature-window-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: var(--spacing-sm); margin-top: 8px; }
96
+ .feature-filter-fields input { margin-top: 0; }
97
+ .feature-window-fields button { justify-self: start; }
98
+ .feature-empty { padding: 24px 0; color: var(--color-text-secondary); }
99
+ .feature-empty p { margin: 0 0 8px; font-size: var(--font-size-body); }
100
+ .feature-empty small { font-size: var(--font-size-secondary); }
101
+ .feature-loading { margin: var(--spacing-sm) 0; color: var(--color-text-secondary); }
102
+ .feature-feedback { margin: 12px 0; }
103
+ .feature-status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 4px; background: var(--feature-surface, var(--color-surface-alt)); color: var(--color-text-primary); font-size: var(--font-size-secondary); }
104
+ .feature-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
105
+ .feature-status[data-status="passed"]::before, .feature-status[data-status="success"]::before { background: var(--color-success); }
106
+ .feature-status[data-status="failed"]::before, .feature-status[data-status="timeout"]::before { background: var(--color-error); }
107
+ .feature-status[data-status="running"] { color: var(--color-text-primary); }
108
+ .feature-project-picker { display: grid; gap: 4px; max-height: 288px; overflow-y: auto; margin-top: var(--spacing-sm); }
109
+ .feature-project-picker > button { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 0; border-radius: var(--radius-sm); background: transparent; text-align: left; color: var(--color-text-primary); }
110
+ .feature-project-picker > button[aria-pressed="true"] { background: var(--feature-surface); }
111
+ .feature-project-label { display: grid; gap: 4px; min-width: 0; }
112
+ .feature-project-label strong { font-size: var(--font-size-body); }
113
+ .feature-project-heading { margin-top: var(--spacing-md); }
114
+ .feature-session-row { padding: 12px 0; }
115
+ .feature-session-row > button, .feature-link-list button { display: block; padding: 8px 0; border: 0; background: transparent; color: var(--color-text-primary); font: inherit; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
116
+ .feature-link-list { display: grid; min-width: 0; }
117
+ .feature-diagnostics { margin-bottom: var(--spacing-md); }
118
+ .feature-diagnostics > summary { min-height: 44px; cursor: pointer; font-size: var(--font-size-title); font-weight: 600; align-content: center; }
119
+ .feature-diagnostic-options { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: var(--spacing-sm) 0; }
120
+ .feature-diagnostic-options label { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--color-text-secondary); font-size: var(--font-size-secondary); }
121
+ .feature-diagnostic-controls { margin-bottom: 8px; }
122
+ .feature-export-actions { padding-top: var(--spacing-sm); }
123
+ .context-window-reference { box-sizing: border-box; margin: var(--spacing-md) 0 var(--spacing-sm); padding-inline: var(--spacing-sm); color: var(--color-text-primary); }
124
+ .context-window-reference .feature-section-heading { margin-bottom: 4px; }
125
+ .feature-window-warning { margin-top: 12px; padding-block: 8px; }
126
+ .feature-window-warning > span { color: var(--color-text-secondary); font-size: var(--font-size-secondary); }
127
+ .session-feature-controls { display: flex; align-items: center; gap: 4px; margin-left: auto; }
128
+ .session-feature-controls button { min-width: 44px; padding: 8px; border: 0; background: transparent; color: var(--color-text-muted); }
129
+ .session-feature-controls button:not(:disabled):hover { color: var(--color-text-primary); background: var(--color-surface-alt); }
130
+ .session-feature-controls button:disabled { opacity: 0.45; cursor: not-allowed; }
131
+ .session-feature-controls button:not(:disabled):active { opacity: 0.76; }
132
+ .feature-message-select { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
133
+ .feature-focus { margin: 16px 0; padding: 16px; background: var(--color-surface-alt); }
134
+ @media (max-width: 640px) {
135
+ #panel-settings .feature-diagnostics { padding-inline: 20px; }
136
+ .feature-toolbar { align-items: stretch; }
137
+ .feature-toolbar > .feature-primary { width: 100%; }
138
+ .feature-filter-fields, .feature-window-fields { grid-template-columns: minmax(0, 1fr); }
139
+ .feature-search-form { flex-wrap: nowrap; }
140
+ .feature-search-form input { flex-basis: 0; }
141
+ .feature-search-form > button { flex-shrink: 0; }
142
+ .feature-record { padding-block: var(--spacing-sm); }
143
+ .feature-record-heading { flex-wrap: wrap; }
144
+ .feature-project-picker { max-height: 240px; }
145
+ }
146
+ @media (prefers-reduced-motion: reduce) {
147
+ .session-features button, .context-window-reference button, .session-feature-controls button { transition: none; }
148
+ }
@@ -919,3 +919,24 @@
919
919
  min-height: 0;
920
920
  }
921
921
  }
922
+
923
+
924
+ /* 会话操作仅显示图标;保留旧标签节点与按钮契约。 */
925
+ #panel-sessions .session-preview-actions button[data-icon-only="true"] {
926
+ display: inline-flex;
927
+ align-items: center;
928
+ justify-content: center;
929
+ width: 44px;
930
+ min-width: 44px;
931
+ height: 44px;
932
+ min-height: 44px;
933
+ padding: 0;
934
+ gap: 0;
935
+ flex-shrink: 0;
936
+ }
937
+ #panel-sessions .session-preview-actions button[data-icon-only="true"] > .session-action-label { display: none; }
938
+ #panel-sessions .session-preview-actions button[data-icon-only="true"] svg { width: 16px; height: 16px; }
939
+ @container session-preview (max-width: 620px) {
940
+ #panel-sessions .session-preview-actions { align-items: flex-start; }
941
+ #panel-sessions .session-secondary-actions { flex-wrap: wrap; }
942
+ }
@@ -0,0 +1,181 @@
1
+ /* 面板子导航共享外观;保留模板、显隐条件与主题颜色。 */
2
+ :is(
3
+ #panel-prompts, #panel-settings, #panel-plugins, #panel-sessions, #panel-market,
4
+ #panel-config-provider, #panel-config-claude, #panel-config-openclaw,
5
+ #panel-config-opencode, #panel-config-kilocode, #panel-config-pi
6
+ ) {
7
+ --sub-tab-gap: 2px;
8
+ --sub-tab-min-size: 44px;
9
+ --sub-tab-padding: 7px 10px 8px;
10
+ --sub-tab-line-width: 2px;
11
+ --sub-tab-focus-offset: -4px;
12
+ --sub-tab-transition: color var(--transition-fast) var(--ease-smooth),
13
+ border-color var(--transition-fast) var(--ease-smooth);
14
+ }
15
+
16
+ /* 不设置 display,保留移动端编辑/预览开关的原有显隐。 */
17
+ :is(
18
+ #panel-prompts .prompts-md-tabs,
19
+ #panel-prompts .prompts-mobile-view-switch,
20
+ #panel-settings .settings-tab-header > .segmented-control,
21
+ #panel-plugins .plugins-list,
22
+ #panel-plugins .prompt-templates-modebar,
23
+ #panel-sessions .session-source-pills,
24
+ #panel-market .skills-target-switch,
25
+ :is(#panel-config-provider, #panel-config-claude, #panel-config-openclaw,
26
+ #panel-config-opencode, #panel-config-kilocode, #panel-config-pi) > .segmented-control
27
+ ) {
28
+ align-items: center;
29
+ justify-content: flex-start;
30
+ flex-direction: row;
31
+ flex-wrap: nowrap;
32
+ gap: var(--sub-tab-gap);
33
+ width: fit-content;
34
+ min-width: 0;
35
+ max-width: 100%;
36
+ padding: 0;
37
+ border: 0;
38
+ border-bottom: 1px solid var(--color-border-soft);
39
+ border-radius: 0;
40
+ background: transparent;
41
+ box-shadow: none;
42
+ backdrop-filter: none;
43
+ overflow-x: auto;
44
+ overflow-y: hidden;
45
+ }
46
+
47
+ :is(
48
+ #panel-prompts .prompts-md-tab,
49
+ #panel-prompts .prompts-mobile-view-btn,
50
+ #panel-settings .settings-tab-header .segmented-option,
51
+ #panel-plugins .plugins-item,
52
+ #panel-plugins .mode-pill,
53
+ #panel-sessions .session-source-pill,
54
+ #panel-market .skills-target-chip,
55
+ :is(#panel-config-provider, #panel-config-claude, #panel-config-openclaw,
56
+ #panel-config-opencode, #panel-config-kilocode, #panel-config-pi) > .segmented-control > .segment
57
+ ) {
58
+ display: inline-flex;
59
+ align-items: center;
60
+ justify-content: center;
61
+ flex: 0 0 auto;
62
+ width: auto;
63
+ min-width: var(--sub-tab-min-size);
64
+ min-height: var(--sub-tab-min-size);
65
+ padding: var(--sub-tab-padding);
66
+ border: 0;
67
+ border-bottom: var(--sub-tab-line-width) solid transparent;
68
+ border-radius: 0;
69
+ background: transparent;
70
+ box-shadow: none;
71
+ color: var(--color-text-secondary);
72
+ font-family: var(--font-family);
73
+ font-size: var(--font-size-body);
74
+ font-weight: var(--font-weight-secondary);
75
+ line-height: 1.4;
76
+ letter-spacing: 0;
77
+ white-space: nowrap;
78
+ cursor: pointer;
79
+ outline: none;
80
+ transform: none;
81
+ transition: var(--sub-tab-transition);
82
+ }
83
+
84
+ :is(
85
+ #panel-prompts .prompts-md-tab,
86
+ #panel-prompts .prompts-mobile-view-btn,
87
+ #panel-settings .settings-tab-header .segmented-option,
88
+ #panel-plugins .plugins-item,
89
+ #panel-plugins .mode-pill,
90
+ #panel-sessions .session-source-pill,
91
+ #panel-market .skills-target-chip,
92
+ :is(#panel-config-provider, #panel-config-claude, #panel-config-openclaw,
93
+ #panel-config-opencode, #panel-config-kilocode, #panel-config-pi) > .segmented-control > .segment
94
+ ):hover:not(:disabled):not(.active) {
95
+ color: var(--color-text-primary);
96
+ background: transparent;
97
+ transform: none;
98
+ }
99
+
100
+ :is(
101
+ #panel-prompts .prompts-md-tab,
102
+ #panel-prompts .prompts-mobile-view-btn,
103
+ #panel-settings .settings-tab-header .segmented-option,
104
+ #panel-plugins .plugins-item,
105
+ #panel-plugins .mode-pill,
106
+ #panel-sessions .session-source-pill,
107
+ #panel-market .skills-target-chip,
108
+ :is(#panel-config-provider, #panel-config-claude, #panel-config-openclaw,
109
+ #panel-config-opencode, #panel-config-kilocode, #panel-config-pi) > .segmented-control > .segment
110
+ ).active {
111
+ color: var(--color-brand-dark);
112
+ border-bottom-color: var(--color-brand);
113
+ background: transparent;
114
+ box-shadow: none;
115
+ }
116
+
117
+ :is(
118
+ #panel-prompts .prompts-md-tab,
119
+ #panel-prompts .prompts-mobile-view-btn,
120
+ #panel-settings .settings-tab-header .segmented-option,
121
+ #panel-plugins .plugins-item,
122
+ #panel-plugins .mode-pill,
123
+ #panel-sessions .session-source-pill,
124
+ #panel-market .skills-target-chip,
125
+ :is(#panel-config-provider, #panel-config-claude, #panel-config-openclaw,
126
+ #panel-config-opencode, #panel-config-kilocode, #panel-config-pi) > .segmented-control > .segment
127
+ ):focus-visible {
128
+ outline: var(--sub-tab-line-width) solid var(--color-brand-dark);
129
+ outline-offset: var(--sub-tab-focus-offset);
130
+ box-shadow: none;
131
+ }
132
+
133
+ :is(
134
+ #panel-prompts .prompts-md-tab,
135
+ #panel-prompts .prompts-mobile-view-btn,
136
+ #panel-settings .settings-tab-header .segmented-option,
137
+ #panel-plugins .plugins-item,
138
+ #panel-plugins .mode-pill,
139
+ #panel-sessions .session-source-pill,
140
+ #panel-market .skills-target-chip,
141
+ :is(#panel-config-provider, #panel-config-claude, #panel-config-openclaw,
142
+ #panel-config-opencode, #panel-config-kilocode, #panel-config-pi) > .segmented-control > .segment
143
+ ):disabled {
144
+ opacity: 0.5;
145
+ cursor: not-allowed;
146
+ }
147
+
148
+ /* 使用一条底边框,移除插件模式按钮的第二条选中线。 */
149
+ #panel-plugins .mode-pill.active::after {
150
+ content: none;
151
+ }
152
+
153
+ #panel-plugins .plugins-item .plugins-item-title,
154
+ #panel-sessions .session-source-pill-label {
155
+ font-size: inherit;
156
+ font-weight: inherit;
157
+ line-height: inherit;
158
+ color: inherit;
159
+ }
160
+
161
+ /* 已知来源继续使用原有主题调色;其他来源不再保留白色选中圆点。 */
162
+ #panel-sessions .session-source-pill-dot {
163
+ box-shadow: none;
164
+ }
165
+
166
+ #panel-sessions .session-source-pill:not(:is(
167
+ [data-source="codex"], [data-source="claude"],
168
+ [data-source="gemini"], [data-source="codebuddy"]
169
+ )) .session-source-pill-dot {
170
+ background: var(--color-text-muted);
171
+ }
172
+
173
+ @media (prefers-reduced-motion: reduce) {
174
+ :is(
175
+ #panel-prompts, #panel-settings, #panel-plugins, #panel-sessions, #panel-market,
176
+ #panel-config-provider, #panel-config-claude, #panel-config-openclaw,
177
+ #panel-config-opencode, #panel-config-kilocode, #panel-config-pi
178
+ ) {
179
+ --sub-tab-transition: none;
180
+ }
181
+ }
package/web-ui/styles.css CHANGED
@@ -1,4 +1,4 @@
1
- @import url('./styles/base-theme.css');
1
+ @import url('./styles/base-theme.css');
2
2
  @import url('./styles/layout-shell.css');
3
3
  @import url('./styles/navigation-panels.css');
4
4
  @import url('./styles/titles-cards.css');
@@ -23,5 +23,9 @@
23
23
  @import url('./styles/trash-panel.css');
24
24
  @import url('./styles/system-prompt.css');
25
25
  @import url('./styles/prompts-editor.css');
26
+ @import url('./styles/context-health.css');
27
+ @import url('./styles/session-features.css');
28
+ @import url('./styles/config-changes.css');
26
29
  @import url('./styles/theme-dark.css');
27
30
  @import url('./styles/theme-ocean.css');
31
+ @import url('./styles/sub-tabs.css');