@firstpick/pi-package-webui 0.9.4 → 0.9.6
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.
- package/README.md +7 -2
- package/bin/pi-webui.mjs +90 -5
- package/lib/optional-feature-catalog.mjs +1 -1
- package/lib/session-actions.mjs +20 -2
- package/lib/ui-layout-settings.mjs +37 -6
- package/package.json +1 -1
- package/public/app.js +2311 -257
- package/public/index.html +82 -55
- package/public/service-worker.js +4 -1
- package/public/stream-derived-output.mjs +799 -0
- package/public/stream-markdown-tail.mjs +204 -0
- package/public/stream-output-controller.mjs +222 -51
- package/public/stream-render-scheduler.mjs +85 -0
- package/public/styles.css +276 -20
- package/public/transcript-renderer.mjs +73 -24
- package/tests/boot-failure-diagnostics.test.mjs +3 -3
- package/tests/browser/composer-action-grid-reorder.spec.mjs +114 -31
- package/tests/browser/control-deck-side-panels.spec.mjs +42 -0
- package/tests/browser/control-visibility.spec.mjs +396 -0
- package/tests/browser/mobile-foundation.spec.mjs +28 -0
- package/tests/browser/persistent-ui-layout.spec.mjs +9 -9
- package/tests/browser/stream-output-isolation.spec.mjs +308 -3
- package/tests/browser/user-noticeable-fixes.spec.mjs +204 -0
- package/tests/codex-fast-mode-static.test.mjs +2 -2
- package/tests/composer-action-grid-reorder-static.test.mjs +8 -7
- package/tests/control-deck-side-panels-static.test.mjs +3 -1
- package/tests/control-visibility-static.test.mjs +294 -0
- package/tests/controls-layout-static.test.mjs +3 -3
- package/tests/cwd-footer-reliability-static.test.mjs +1 -1
- package/tests/fast-mode-client-static.test.mjs +1 -1
- package/tests/feature-decision-output-popup-static.test.mjs +2 -2
- package/tests/file-viewer-image-static.test.mjs +3 -3
- package/tests/fixtures/fake-pi.mjs +57 -10
- package/tests/fixtures/streaming-workloads.mjs +167 -0
- package/tests/footer-provider-usage-visual-static.test.mjs +15 -0
- package/tests/foreground-transcript-catch-up-static.test.mjs +7 -1
- package/tests/git-workflow-preferences.test.mjs +2 -2
- package/tests/http-endpoints-harness.test.mjs +4 -4
- package/tests/interaction-state-stability-static.test.mjs +3 -1
- package/tests/intercom-conversation-viewer-static.test.mjs +4 -4
- package/tests/intercom-conversations-http.test.mjs +16 -0
- package/tests/main-output-loading-static.test.mjs +3 -3
- package/tests/middle-button-drag-scroll-static.test.mjs +3 -3
- package/tests/mobile-continuity-tablet-static.test.mjs +3 -3
- package/tests/mobile-foundation-static.test.mjs +3 -3
- package/tests/mobile-phone-experience-static.test.mjs +1 -1
- package/tests/mobile-static.test.mjs +77 -66
- package/tests/open-issue-wizard-static.test.mjs +2 -2
- package/tests/persistent-ui-layout-static.test.mjs +7 -7
- package/tests/prompt-input-vertical-scroll-static.test.mjs +26 -0
- package/tests/questionnaire-dialog.test.mjs +3 -3
- package/tests/runtime-error-visibility.test.mjs +3 -3
- package/tests/session-auth-harness.test.mjs +26 -1
- package/tests/session-sampling-ui-static.test.mjs +3 -3
- package/tests/side-panel-section-height-removal-static.test.mjs +3 -3
- package/tests/stream-derived-output.test.mjs +121 -0
- package/tests/stream-markdown-tail.test.mjs +218 -0
- package/tests/stream-output-controller.test.mjs +119 -4
- package/tests/stream-output-isolation-static.test.mjs +34 -6
- package/tests/stream-output-workloads.test.mjs +276 -0
- package/tests/stream-render-scheduler.test.mjs +115 -0
- package/tests/streaming-ui-coupling.test.mjs +1 -1
- package/tests/subagent-observability-static.test.mjs +2 -2
- package/tests/syntax-highlighting-static.test.mjs +3 -3
- package/tests/theme-customizer-static.test.mjs +1 -1
- package/tests/thinking-format-parser.test.mjs +15 -0
- package/tests/todo-filter-static.test.mjs +148 -0
- package/tests/transcript-markdown-tail.test.mjs +137 -0
- package/tests/ui-layout-settings.test.mjs +54 -7
- package/tests/webui-settings-locking.test.mjs +3 -3
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export const NORMAL_STREAM_RENDER_INTERVAL_MS = 40;
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Latest-wins cadence for expensive normal-stream formatting. The first
|
|
5
|
+
* request renders synchronously; sustained requests publish at most once per
|
|
6
|
+
* interval. Semantic callers use flushNow(), while reset/cancellation uses
|
|
7
|
+
* cancel(). Clock and timer hooks keep cadence tests deterministic.
|
|
8
|
+
*/
|
|
9
|
+
export function createLatestWinsRenderScheduler({
|
|
10
|
+
render,
|
|
11
|
+
now = () => (typeof globalThis.performance?.now === "function" ? globalThis.performance.now() : Date.now()),
|
|
12
|
+
schedule = (callback, delay) => globalThis.setTimeout(callback, delay),
|
|
13
|
+
cancelSchedule = (handle) => globalThis.clearTimeout(handle),
|
|
14
|
+
intervalMs = NORMAL_STREAM_RENDER_INTERVAL_MS,
|
|
15
|
+
onDiagnostic,
|
|
16
|
+
} = {}) {
|
|
17
|
+
if (typeof render !== "function") throw new TypeError("render is required");
|
|
18
|
+
if (typeof now !== "function" || typeof schedule !== "function" || typeof cancelSchedule !== "function") {
|
|
19
|
+
throw new TypeError("now, schedule, and cancelSchedule must be functions");
|
|
20
|
+
}
|
|
21
|
+
if (!Number.isFinite(intervalMs) || intervalMs < 1) throw new TypeError("intervalMs must be a positive number");
|
|
22
|
+
const diagnose = typeof onDiagnostic === "function"
|
|
23
|
+
? (record) => {
|
|
24
|
+
try { onDiagnostic(Object.freeze(record)); } catch { /* Diagnostics cannot alter rendering. */ }
|
|
25
|
+
}
|
|
26
|
+
: () => {};
|
|
27
|
+
|
|
28
|
+
let handle = null;
|
|
29
|
+
let pendingValue;
|
|
30
|
+
let hasPending = false;
|
|
31
|
+
let lastFlushAt = null;
|
|
32
|
+
|
|
33
|
+
const clearHandle = () => {
|
|
34
|
+
if (handle !== null) cancelSchedule(handle);
|
|
35
|
+
handle = null;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const run = (reason = "scheduled") => {
|
|
39
|
+
clearHandle();
|
|
40
|
+
if (!hasPending) return false;
|
|
41
|
+
const value = pendingValue;
|
|
42
|
+
pendingValue = undefined;
|
|
43
|
+
hasPending = false;
|
|
44
|
+
lastFlushAt = now();
|
|
45
|
+
render(value, { reason });
|
|
46
|
+
diagnose({ type: "render-scheduler", action: "flush", reason });
|
|
47
|
+
return true;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const defer = () => {
|
|
51
|
+
if (handle !== null) return;
|
|
52
|
+
const elapsed = lastFlushAt === null ? intervalMs : Math.max(0, now() - lastFlushAt);
|
|
53
|
+
const delayMs = Math.max(0, intervalMs - elapsed);
|
|
54
|
+
handle = schedule(() => {
|
|
55
|
+
handle = null;
|
|
56
|
+
run("cadence");
|
|
57
|
+
}, delayMs);
|
|
58
|
+
diagnose({ type: "render-scheduler", action: "defer", delayMs });
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
return Object.freeze({
|
|
62
|
+
request(value) {
|
|
63
|
+
pendingValue = value;
|
|
64
|
+
hasPending = true;
|
|
65
|
+
if (lastFlushAt === null || now() - lastFlushAt >= intervalMs) return run("immediate");
|
|
66
|
+
defer();
|
|
67
|
+
return false;
|
|
68
|
+
},
|
|
69
|
+
flushNow(reason = "semantic") {
|
|
70
|
+
return run(String(reason || "semantic"));
|
|
71
|
+
},
|
|
72
|
+
cancel() {
|
|
73
|
+
clearHandle();
|
|
74
|
+
pendingValue = undefined;
|
|
75
|
+
hasPending = false;
|
|
76
|
+
lastFlushAt = null;
|
|
77
|
+
},
|
|
78
|
+
pending() {
|
|
79
|
+
return hasPending;
|
|
80
|
+
},
|
|
81
|
+
intervalMs() {
|
|
82
|
+
return intervalMs;
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
}
|
package/public/styles.css
CHANGED
|
@@ -273,7 +273,8 @@ textarea::placeholder { color: rgba(var(--ctp-subtext-rgb), 0.62); }
|
|
|
273
273
|
min-height: calc(1.5em + 1.8rem);
|
|
274
274
|
max-height: min(25vh, 10rem);
|
|
275
275
|
resize: none;
|
|
276
|
-
overflow-y:
|
|
276
|
+
overflow-y: auto;
|
|
277
|
+
overscroll-behavior-y: contain;
|
|
277
278
|
}
|
|
278
279
|
|
|
279
280
|
.topbar {
|
|
@@ -351,7 +352,8 @@ body.terminal-split-open.file-viewer-open .workspace-column { grid-template-colu
|
|
|
351
352
|
.layout > .side-panel-right { min-width: 0; min-height: 0; }
|
|
352
353
|
.layout > .side-panel-left[hidden],
|
|
353
354
|
.layout > .side-panel-right[hidden] { display: none !important; }
|
|
354
|
-
|
|
355
|
+
/* :where() keeps this default at (0,1,1) so the collapsed/overlay rules below always win. */
|
|
356
|
+
body:where(:not(.control-deck-left):not(.control-deck-both)) .layout { grid-template-columns: minmax(0, 1fr) minmax(20rem, var(--side-panel-right-width, var(--side-panel-width))); }
|
|
355
357
|
body.control-deck-left .layout { grid-template-columns: minmax(20rem, var(--side-panel-left-width, 384px)) minmax(0, 1fr); }
|
|
356
358
|
body.control-deck-both .layout { grid-template-columns: minmax(20rem, var(--side-panel-left-width, 384px)) minmax(0, 1fr) minmax(20rem, var(--side-panel-right-width, var(--side-panel-width))); }
|
|
357
359
|
body.side-panel-right-collapsed.control-deck-right .layout,
|
|
@@ -1165,6 +1167,26 @@ body.terminal-tabs-resizing * {
|
|
|
1165
1167
|
letter-spacing: 0.06em;
|
|
1166
1168
|
text-transform: uppercase;
|
|
1167
1169
|
}
|
|
1170
|
+
.control-visibility-context-menu {
|
|
1171
|
+
max-height: calc(100vh - 1rem);
|
|
1172
|
+
max-height: calc(100dvh - 1rem);
|
|
1173
|
+
overflow-y: auto;
|
|
1174
|
+
}
|
|
1175
|
+
.control-visibility-menu-label {
|
|
1176
|
+
padding: 0.38rem 0.58rem 0.24rem;
|
|
1177
|
+
color: var(--ctp-subtext);
|
|
1178
|
+
font-size: var(--text-xs);
|
|
1179
|
+
font-weight: 850;
|
|
1180
|
+
letter-spacing: 0.06em;
|
|
1181
|
+
text-transform: uppercase;
|
|
1182
|
+
}
|
|
1183
|
+
.control-visibility-menu-action {
|
|
1184
|
+
border-top: 1px solid color-mix(in srgb, var(--ctp-subtext), transparent 78%);
|
|
1185
|
+
}
|
|
1186
|
+
/* User-hidden preference state composes with capability-owned hidden attributes. */
|
|
1187
|
+
.webui-user-hidden {
|
|
1188
|
+
display: none !important;
|
|
1189
|
+
}
|
|
1168
1190
|
.side-panel-context-menu-item {
|
|
1169
1191
|
display: grid;
|
|
1170
1192
|
grid-template-columns: 1.1rem minmax(0, 1fr);
|
|
@@ -1191,7 +1213,8 @@ body.terminal-tabs-resizing * {
|
|
|
1191
1213
|
background: var(--ctp-teal);
|
|
1192
1214
|
}
|
|
1193
1215
|
body.embedded-split .layout,
|
|
1194
|
-
body.embedded-split.side-panel-collapsed .layout
|
|
1216
|
+
body.embedded-split.side-panel-collapsed .layout,
|
|
1217
|
+
body.embedded-split:not(.control-deck-left):not(.control-deck-both) .layout {
|
|
1195
1218
|
grid-template-columns: minmax(0, 1fr);
|
|
1196
1219
|
gap: 0;
|
|
1197
1220
|
width: 100%;
|
|
@@ -1201,8 +1224,12 @@ body.embedded-split.side-panel-collapsed .layout {
|
|
|
1201
1224
|
padding: 0;
|
|
1202
1225
|
overflow: hidden;
|
|
1203
1226
|
}
|
|
1204
|
-
body.embedded-split .chat-panel
|
|
1227
|
+
body.embedded-split .chat-panel,
|
|
1228
|
+
body.embedded-split.terminal-tabs-left .chat-panel {
|
|
1229
|
+
display: flex;
|
|
1230
|
+
flex-direction: column;
|
|
1205
1231
|
height: 100%;
|
|
1232
|
+
overflow: hidden;
|
|
1206
1233
|
border-radius: 0;
|
|
1207
1234
|
}
|
|
1208
1235
|
body.embedded-split .terminal-tabs-shell,
|
|
@@ -1835,9 +1862,29 @@ body.control-deck-section-dragging .side-panel-empty-drop-target {
|
|
|
1835
1862
|
padding-left: 0.3rem;
|
|
1836
1863
|
border-left: 1px solid rgba(180, 190, 254, 0.14);
|
|
1837
1864
|
}
|
|
1865
|
+
.git-side-panel-repository-header {
|
|
1866
|
+
display: flex;
|
|
1867
|
+
align-items: stretch;
|
|
1868
|
+
min-width: 0;
|
|
1869
|
+
}
|
|
1870
|
+
.git-side-panel-repository-header > .git-side-panel-repository-toggle { flex: 1 1 auto; min-width: 0; }
|
|
1871
|
+
.git-side-panel-repository-header > .git-side-panel-overflow-button {
|
|
1872
|
+
align-self: center;
|
|
1873
|
+
margin-right: 0.3rem;
|
|
1874
|
+
color: var(--ctp-subtext);
|
|
1875
|
+
}
|
|
1876
|
+
.git-side-panel-file > .git-side-panel-overflow-button {
|
|
1877
|
+
width: 1.7rem;
|
|
1878
|
+
min-width: 1.7rem;
|
|
1879
|
+
min-height: 1.7rem;
|
|
1880
|
+
color: var(--ctp-subtext);
|
|
1881
|
+
opacity: 0.75;
|
|
1882
|
+
}
|
|
1883
|
+
.git-side-panel-file:hover > .git-side-panel-overflow-button,
|
|
1884
|
+
.git-side-panel-file:focus-within > .git-side-panel-overflow-button { opacity: 1; }
|
|
1838
1885
|
.git-side-panel-file {
|
|
1839
1886
|
display: grid;
|
|
1840
|
-
grid-template-columns: 1.3rem minmax(5rem, 1fr) auto;
|
|
1887
|
+
grid-template-columns: 1.3rem minmax(5rem, 1fr) auto auto;
|
|
1841
1888
|
align-items: center;
|
|
1842
1889
|
gap: 0.26rem;
|
|
1843
1890
|
min-width: 0;
|
|
@@ -1922,10 +1969,12 @@ body.control-deck-section-dragging .side-panel-empty-drop-target {
|
|
|
1922
1969
|
}
|
|
1923
1970
|
.file-tree-toolbar {
|
|
1924
1971
|
display: grid;
|
|
1925
|
-
grid-template-columns: minmax(0, 1fr) auto;
|
|
1972
|
+
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
1926
1973
|
gap: 0.55rem;
|
|
1927
1974
|
align-items: start;
|
|
1928
1975
|
}
|
|
1976
|
+
.text-prompt-dialog { width: min(34rem, calc(100vw - 2rem)); }
|
|
1977
|
+
.text-prompt-dialog .dialog-input { width: 100%; margin: 0.6rem 0 0.4rem; }
|
|
1929
1978
|
.file-tree-toolbar strong {
|
|
1930
1979
|
display: block;
|
|
1931
1980
|
color: var(--ctp-text);
|
|
@@ -2395,6 +2444,12 @@ body.control-deck-section-dragging .side-panel-empty-drop-target {
|
|
|
2395
2444
|
border-color: rgba(148, 226, 213, 0.28);
|
|
2396
2445
|
font-weight: 800;
|
|
2397
2446
|
}
|
|
2447
|
+
.control-action-row .control-apply-button.pending {
|
|
2448
|
+
border-color: rgba(249, 226, 175, 0.75);
|
|
2449
|
+
box-shadow: 0 0 0 1px rgba(249, 226, 175, 0.35), 0 0 0.9rem rgba(249, 226, 175, 0.25);
|
|
2450
|
+
color: var(--ctp-yellow);
|
|
2451
|
+
}
|
|
2452
|
+
.control-action-row .control-apply-button.pending::after { content: " •"; }
|
|
2398
2453
|
.control-action-row .control-apply-button:hover,
|
|
2399
2454
|
.control-action-row .control-apply-button:focus-visible {
|
|
2400
2455
|
color: #11111b;
|
|
@@ -3692,7 +3747,7 @@ body.control-deck-section-dragging .side-panel-empty-drop-target {
|
|
|
3692
3747
|
border-radius: 999px;
|
|
3693
3748
|
color: var(--ctp-blue);
|
|
3694
3749
|
background: rgba(137, 180, 250, 0.08);
|
|
3695
|
-
font-size:
|
|
3750
|
+
font-size: var(--text-xs);
|
|
3696
3751
|
font-weight: 850;
|
|
3697
3752
|
line-height: 1.2;
|
|
3698
3753
|
text-overflow: ellipsis;
|
|
@@ -8440,7 +8495,12 @@ button.git-workflow-step:hover:not(:disabled) {
|
|
|
8440
8495
|
}
|
|
8441
8496
|
.message.streaming {
|
|
8442
8497
|
outline: 1px solid rgba(148, 226, 213, 0.72);
|
|
8443
|
-
|
|
8498
|
+
/* Streaming cards repaint on every token; keep the glow cheap (small blur, single layer). */
|
|
8499
|
+
box-shadow: 0 0 0.6rem var(--glow-teal);
|
|
8500
|
+
}
|
|
8501
|
+
@media (max-width: 720px), (pointer: coarse) and (hover: none) {
|
|
8502
|
+
.message { box-shadow: none; }
|
|
8503
|
+
.message::before { box-shadow: none; }
|
|
8444
8504
|
}
|
|
8445
8505
|
.message.run-indicator-message {
|
|
8446
8506
|
margin-bottom: 0.5rem;
|
|
@@ -8495,6 +8555,13 @@ button.git-workflow-step:hover:not(:disabled) {
|
|
|
8495
8555
|
text-overflow: ellipsis;
|
|
8496
8556
|
white-space: nowrap;
|
|
8497
8557
|
}
|
|
8558
|
+
.run-indicator-elapsed {
|
|
8559
|
+
flex: 0 0 auto;
|
|
8560
|
+
color: rgba(var(--ctp-text-rgb), 0.62);
|
|
8561
|
+
font-size: var(--text-xs);
|
|
8562
|
+
font-variant-numeric: tabular-nums;
|
|
8563
|
+
white-space: nowrap;
|
|
8564
|
+
}
|
|
8498
8565
|
@keyframes run-indicator-pulse {
|
|
8499
8566
|
0%, 100% { transform: scale(0.78); opacity: 0.62; }
|
|
8500
8567
|
50% { transform: scale(1.16); opacity: 1; }
|
|
@@ -8580,6 +8647,18 @@ button.git-workflow-step:hover:not(:disabled) {
|
|
|
8580
8647
|
transition: transform 140ms ease;
|
|
8581
8648
|
}
|
|
8582
8649
|
.message-collapse[open] > summary.message-header::after { transform: rotate(90deg); }
|
|
8650
|
+
.thinking-disclosure > .message-header { cursor: pointer; flex-wrap: wrap; }
|
|
8651
|
+
.thinking-disclosure-preview {
|
|
8652
|
+
flex: 1 1 100%;
|
|
8653
|
+
min-width: 0;
|
|
8654
|
+
overflow: hidden;
|
|
8655
|
+
color: rgba(var(--ctp-subtext-rgb), 0.78);
|
|
8656
|
+
font-style: italic;
|
|
8657
|
+
font-size: var(--text-sm);
|
|
8658
|
+
text-overflow: ellipsis;
|
|
8659
|
+
white-space: nowrap;
|
|
8660
|
+
}
|
|
8661
|
+
.thinking-disclosure[open] > .message-header > .thinking-disclosure-preview { display: none; }
|
|
8583
8662
|
.message-collapse > .message-body {
|
|
8584
8663
|
padding: 0 0.9rem 0.85rem;
|
|
8585
8664
|
border-top: 1px solid rgba(249, 226, 175, 0.12);
|
|
@@ -10044,6 +10123,16 @@ button.composer-skill-tag:focus-visible {
|
|
|
10044
10123
|
text-transform: uppercase;
|
|
10045
10124
|
letter-spacing: 0.08em;
|
|
10046
10125
|
}
|
|
10126
|
+
.command-suggest-hint {
|
|
10127
|
+
position: sticky;
|
|
10128
|
+
bottom: 0;
|
|
10129
|
+
padding: 0.32rem 0.75rem;
|
|
10130
|
+
border-top: 1px solid rgba(180, 190, 254, 0.12);
|
|
10131
|
+
background: rgba(var(--ctp-crust-rgb), 0.96);
|
|
10132
|
+
color: rgba(var(--ctp-subtext-rgb), 0.78);
|
|
10133
|
+
font-size: var(--text-xs);
|
|
10134
|
+
letter-spacing: 0.02em;
|
|
10135
|
+
}
|
|
10047
10136
|
.command-suggest-empty {
|
|
10048
10137
|
padding: 0.7rem 0.8rem;
|
|
10049
10138
|
color: var(--muted);
|
|
@@ -10061,7 +10150,7 @@ body.composer-action-grid-enabled .composer-row {
|
|
|
10061
10150
|
--composer-action-cell-min-width: 3.2rem;
|
|
10062
10151
|
position: relative;
|
|
10063
10152
|
display: grid;
|
|
10064
|
-
grid-template-columns: repeat(auto-fill,
|
|
10153
|
+
grid-template-columns: repeat(auto-fill, var(--composer-action-cell-min-width));
|
|
10065
10154
|
grid-auto-flow: dense;
|
|
10066
10155
|
align-items: stretch;
|
|
10067
10156
|
}
|
|
@@ -10099,7 +10188,7 @@ body.composer-action-grid-enabled.composer-action-drag-active .composer-row > .c
|
|
|
10099
10188
|
z-index: 0;
|
|
10100
10189
|
inset: 0;
|
|
10101
10190
|
display: grid;
|
|
10102
|
-
grid-template-columns: repeat(auto-fill,
|
|
10191
|
+
grid-template-columns: repeat(auto-fill, var(--composer-action-cell-min-width));
|
|
10103
10192
|
grid-template-rows: repeat(var(--composer-action-grid-rows, 1), minmax(0, 1fr));
|
|
10104
10193
|
gap: 0.5rem;
|
|
10105
10194
|
pointer-events: none;
|
|
@@ -10174,11 +10263,20 @@ body.composer-action-grid-enabled .composer-row [data-composer-action-id].compos
|
|
|
10174
10263
|
background: linear-gradient(90deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08));
|
|
10175
10264
|
transform: scaleX(0);
|
|
10176
10265
|
transform-origin: left center;
|
|
10177
|
-
animation: abort-long-press-fill var(--abort-long-press-duration,
|
|
10266
|
+
animation: abort-long-press-fill var(--abort-long-press-duration, 1200ms) linear forwards;
|
|
10178
10267
|
}
|
|
10179
10268
|
@keyframes abort-long-press-fill {
|
|
10180
10269
|
to { transform: scaleX(1); }
|
|
10181
10270
|
}
|
|
10271
|
+
.composer-abort-button.tap-hint {
|
|
10272
|
+
animation: abort-tap-hint 0.36s ease-in-out;
|
|
10273
|
+
border-color: rgba(249, 226, 175, 0.75);
|
|
10274
|
+
}
|
|
10275
|
+
@keyframes abort-tap-hint {
|
|
10276
|
+
0%, 100% { transform: translateX(0); }
|
|
10277
|
+
25% { transform: translateX(-3px); }
|
|
10278
|
+
75% { transform: translateX(3px); }
|
|
10279
|
+
}
|
|
10182
10280
|
.composer-row label {
|
|
10183
10281
|
display: flex;
|
|
10184
10282
|
align-items: center;
|
|
@@ -10481,6 +10579,9 @@ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-
|
|
|
10481
10579
|
.composer-publish-menu.open .composer-publish-menu-panel {
|
|
10482
10580
|
display: flex;
|
|
10483
10581
|
}
|
|
10582
|
+
/* After Escape (or choosing an item) the menu stays closed even though the pointer still hovers
|
|
10583
|
+
the trigger or the trigger keeps focus; hovering away and back (or clicking) reopens it. */
|
|
10584
|
+
.composer-publish-menu.menu-dismissed:not(.open) .composer-publish-menu-panel { display: none; }
|
|
10484
10585
|
.composer-auto-height-menu-panel {
|
|
10485
10586
|
height: auto;
|
|
10486
10587
|
max-height: none;
|
|
@@ -13845,6 +13946,23 @@ body.subagent-terminal-active .composer-remote-mic-consent {
|
|
|
13845
13946
|
border-color: rgba(148, 226, 213, 0.45);
|
|
13846
13947
|
background: linear-gradient(90deg, rgba(148, 226, 213, 0.16), rgba(137, 180, 250, 0.10));
|
|
13847
13948
|
}
|
|
13949
|
+
.native-selector-group {
|
|
13950
|
+
position: sticky;
|
|
13951
|
+
top: 0;
|
|
13952
|
+
z-index: 1;
|
|
13953
|
+
margin-top: 0.3rem;
|
|
13954
|
+
padding: 0.2rem 0.4rem;
|
|
13955
|
+
color: var(--ctp-subtext);
|
|
13956
|
+
background: rgba(var(--ctp-base-rgb), 0.96);
|
|
13957
|
+
font-size: var(--text-xs);
|
|
13958
|
+
font-weight: 900;
|
|
13959
|
+
letter-spacing: 0.08em;
|
|
13960
|
+
text-transform: uppercase;
|
|
13961
|
+
}
|
|
13962
|
+
.native-selector-item.keyboard-active {
|
|
13963
|
+
border-color: rgba(148, 226, 213, 0.72);
|
|
13964
|
+
box-shadow: inset 3px 0 0 var(--ctp-teal), 0 0 0 1px rgba(148, 226, 213, 0.28);
|
|
13965
|
+
}
|
|
13848
13966
|
.native-selector-item:disabled {
|
|
13849
13967
|
cursor: default;
|
|
13850
13968
|
opacity: 0.62;
|
|
@@ -16777,10 +16895,13 @@ button.workspace-dashboard-chip {
|
|
|
16777
16895
|
.command-palette-item {
|
|
16778
16896
|
display: grid;
|
|
16779
16897
|
grid-template-columns: 4.8rem minmax(0, 1fr);
|
|
16898
|
+
/* Chromium sizes <button> grid tracks against the button's own line box, which squeezed the
|
|
16899
|
+
title row below its text height (clipped ascenders). Force content-sized rows instead. */
|
|
16900
|
+
grid-template-rows: minmax(min-content, auto) minmax(min-content, auto);
|
|
16780
16901
|
gap: 0.1rem 0.7rem;
|
|
16781
16902
|
width: 100%;
|
|
16782
16903
|
min-width: 0;
|
|
16783
|
-
min-height: 3.
|
|
16904
|
+
min-height: 3.9rem;
|
|
16784
16905
|
padding: 0.62rem 0.74rem;
|
|
16785
16906
|
overflow: hidden;
|
|
16786
16907
|
text-align: left;
|
|
@@ -16807,10 +16928,12 @@ button.workspace-dashboard-chip {
|
|
|
16807
16928
|
white-space: nowrap;
|
|
16808
16929
|
}
|
|
16809
16930
|
.command-palette-item-label {
|
|
16931
|
+
display: block;
|
|
16810
16932
|
min-width: 0;
|
|
16811
16933
|
overflow: hidden;
|
|
16812
16934
|
color: var(--ctp-text);
|
|
16813
16935
|
font-weight: 900;
|
|
16936
|
+
line-height: 1.3;
|
|
16814
16937
|
text-overflow: ellipsis;
|
|
16815
16938
|
white-space: nowrap;
|
|
16816
16939
|
}
|
|
@@ -16975,7 +17098,7 @@ button.workspace-dashboard-chip {
|
|
|
16975
17098
|
.command-palette-item {
|
|
16976
17099
|
grid-template-columns: minmax(3.4rem, 0.26fr) minmax(0, 1fr);
|
|
16977
17100
|
gap: 0.04rem 0.46rem;
|
|
16978
|
-
min-height:
|
|
17101
|
+
min-height: 3rem;
|
|
16979
17102
|
padding: 0.42rem 0.5rem;
|
|
16980
17103
|
border-radius: 0.68rem;
|
|
16981
17104
|
line-height: 1.18;
|
|
@@ -18112,6 +18235,126 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
|
|
|
18112
18235
|
|
|
18113
18236
|
.native-settings-remote-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
|
|
18114
18237
|
.native-settings-note.warning { border-color: rgba(249, 226, 175, 0.46); background: rgba(249, 226, 175, 0.10); }
|
|
18238
|
+
.image-block-button {
|
|
18239
|
+
display: block;
|
|
18240
|
+
width: auto;
|
|
18241
|
+
max-width: 100%;
|
|
18242
|
+
min-width: 0;
|
|
18243
|
+
min-height: 0;
|
|
18244
|
+
padding: 0;
|
|
18245
|
+
border: 0;
|
|
18246
|
+
border-radius: 0.6rem;
|
|
18247
|
+
background: transparent;
|
|
18248
|
+
box-shadow: none;
|
|
18249
|
+
cursor: zoom-in;
|
|
18250
|
+
}
|
|
18251
|
+
.image-block-button > img { display: block; }
|
|
18252
|
+
.attachment-pill-thumb-button {
|
|
18253
|
+
display: inline-grid;
|
|
18254
|
+
place-items: center;
|
|
18255
|
+
width: 2.2rem;
|
|
18256
|
+
min-width: 2.2rem;
|
|
18257
|
+
height: 2.2rem;
|
|
18258
|
+
min-height: 2.2rem;
|
|
18259
|
+
padding: 0;
|
|
18260
|
+
overflow: hidden;
|
|
18261
|
+
border-radius: 0.45rem;
|
|
18262
|
+
background: rgba(var(--ctp-crust-rgb), 0.6);
|
|
18263
|
+
cursor: zoom-in;
|
|
18264
|
+
}
|
|
18265
|
+
.attachment-pill-thumb { width: 100%; height: 100%; object-fit: cover; }
|
|
18266
|
+
.image-lightbox {
|
|
18267
|
+
width: min(96vw, 1400px);
|
|
18268
|
+
max-width: 96vw;
|
|
18269
|
+
max-height: 96vh;
|
|
18270
|
+
padding: 0.5rem;
|
|
18271
|
+
border: 1px solid rgba(180, 190, 254, 0.28);
|
|
18272
|
+
border-radius: 0.8rem;
|
|
18273
|
+
color: var(--ctp-text);
|
|
18274
|
+
background: rgba(var(--ctp-crust-rgb), 0.98);
|
|
18275
|
+
}
|
|
18276
|
+
.image-lightbox::backdrop { background: rgba(0, 0, 0, 0.72); }
|
|
18277
|
+
.image-lightbox figure { display: grid; justify-items: center; gap: 0.4rem; margin: 0; }
|
|
18278
|
+
.image-lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 0.5rem; }
|
|
18279
|
+
.image-lightbox figcaption { color: var(--ctp-subtext); font-size: var(--text-sm); }
|
|
18280
|
+
.image-lightbox-close {
|
|
18281
|
+
position: absolute;
|
|
18282
|
+
top: 0.4rem;
|
|
18283
|
+
right: 0.4rem;
|
|
18284
|
+
width: 2.4rem;
|
|
18285
|
+
min-width: 2.4rem;
|
|
18286
|
+
min-height: 2.4rem;
|
|
18287
|
+
padding: 0;
|
|
18288
|
+
}
|
|
18289
|
+
.message-actions {
|
|
18290
|
+
display: flex;
|
|
18291
|
+
flex-wrap: wrap;
|
|
18292
|
+
gap: 0.45rem;
|
|
18293
|
+
margin: 0.4rem 0.75rem 0.7rem;
|
|
18294
|
+
}
|
|
18295
|
+
.message-action-button {
|
|
18296
|
+
min-height: 2.1rem;
|
|
18297
|
+
padding: 0.25rem 0.75rem;
|
|
18298
|
+
font-size: var(--text-sm);
|
|
18299
|
+
}
|
|
18300
|
+
.message-action-button.primary {
|
|
18301
|
+
color: var(--ctp-crust);
|
|
18302
|
+
border-color: transparent;
|
|
18303
|
+
background: var(--neon-gradient);
|
|
18304
|
+
font-weight: 800;
|
|
18305
|
+
}
|
|
18306
|
+
.footer-model-option.unsupported { opacity: 0.55; }
|
|
18307
|
+
/* Non-blocking warn/error notices (P0-5): errors used to reach only the collapsed Events log. */
|
|
18308
|
+
.notice-toast-stack {
|
|
18309
|
+
position: fixed;
|
|
18310
|
+
z-index: 129;
|
|
18311
|
+
left: 50%;
|
|
18312
|
+
bottom: max(1rem, env(safe-area-inset-bottom));
|
|
18313
|
+
display: grid;
|
|
18314
|
+
gap: 0.45rem;
|
|
18315
|
+
width: min(40rem, calc(100vw - 2rem));
|
|
18316
|
+
transform: translateX(-50%);
|
|
18317
|
+
pointer-events: none;
|
|
18318
|
+
}
|
|
18319
|
+
body:has(#undoToast:not([hidden])) .notice-toast-stack { bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 5.4rem); }
|
|
18320
|
+
.notice-toast {
|
|
18321
|
+
display: grid;
|
|
18322
|
+
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
18323
|
+
align-items: center;
|
|
18324
|
+
gap: 0.2rem 0.6rem;
|
|
18325
|
+
padding: 0.62rem 0.7rem;
|
|
18326
|
+
color: var(--ctp-text);
|
|
18327
|
+
border: 1px solid rgba(249, 226, 175, 0.55);
|
|
18328
|
+
border-radius: 0.8rem;
|
|
18329
|
+
background: rgba(var(--ctp-mantle-rgb), 0.98);
|
|
18330
|
+
box-shadow: 0 1rem 2.5rem rgba(var(--ctp-crust-rgb), 0.48);
|
|
18331
|
+
pointer-events: auto;
|
|
18332
|
+
}
|
|
18333
|
+
.notice-toast.error { border-color: rgba(243, 139, 168, 0.66); }
|
|
18334
|
+
.notice-toast.info { border-color: rgba(137, 180, 250, 0.55); }
|
|
18335
|
+
.notice-toast.success { border-color: rgba(166, 227, 161, 0.55); }
|
|
18336
|
+
.notice-toast.info .notice-toast-message::before { content: "ℹ"; color: var(--ctp-blue); }
|
|
18337
|
+
.notice-toast.success .notice-toast-message::before { content: "✓"; color: var(--ctp-green); }
|
|
18338
|
+
.notice-toast-message { min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
|
|
18339
|
+
.notice-toast-message::before {
|
|
18340
|
+
content: "⚠";
|
|
18341
|
+
margin-right: 0.45rem;
|
|
18342
|
+
color: var(--ctp-yellow);
|
|
18343
|
+
}
|
|
18344
|
+
.notice-toast.error .notice-toast-message::before { content: "✖"; color: var(--ctp-red); }
|
|
18345
|
+
.notice-toast-count {
|
|
18346
|
+
margin-left: 0.4rem;
|
|
18347
|
+
padding: 0 0.4rem;
|
|
18348
|
+
border-radius: 999px;
|
|
18349
|
+
background: rgba(var(--ctp-surface-rgb), 0.9);
|
|
18350
|
+
color: var(--ctp-subtext);
|
|
18351
|
+
font-size: var(--text-xs);
|
|
18352
|
+
font-weight: 900;
|
|
18353
|
+
}
|
|
18354
|
+
.notice-toast-events,
|
|
18355
|
+
.notice-toast-dismiss { min-height: 2rem; padding: 0.2rem 0.6rem; font-size: var(--text-sm); }
|
|
18356
|
+
.notice-toast-dismiss { width: 2.25rem; min-width: 2.25rem; padding-inline: 0; color: var(--ctp-subtext); }
|
|
18357
|
+
.events-unread-badge { border-color: rgba(243, 139, 168, 0.55); color: var(--ctp-red); }
|
|
18115
18358
|
.undo-toast {
|
|
18116
18359
|
--undo-timeout: 10000ms;
|
|
18117
18360
|
position: fixed;
|
|
@@ -18596,7 +18839,7 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
|
|
|
18596
18839
|
min-width: 0;
|
|
18597
18840
|
grid-column: auto;
|
|
18598
18841
|
padding-inline: 0.28rem;
|
|
18599
|
-
font-size:
|
|
18842
|
+
font-size: var(--text-xs);
|
|
18600
18843
|
}
|
|
18601
18844
|
body.mobile-composer-disclosure.pi-run-active:not(.mobile-keyboard-open) .composer-row > #abortButton { order: 1; }
|
|
18602
18845
|
body.mobile-composer-disclosure.pi-run-active:not(.mobile-keyboard-open) .composer-row > #steerButton { order: 2; }
|
|
@@ -18792,14 +19035,14 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
|
|
|
18792
19035
|
.terminal-tab-close { flex-basis: var(--mobile-control-size); min-width: var(--mobile-control-size); }
|
|
18793
19036
|
.terminal-tabs { gap: 0.28rem; padding: 0.42rem; }
|
|
18794
19037
|
.terminal-tab-button { padding: 0.26rem 0.44rem; }
|
|
18795
|
-
.terminal-tab-title { font-size:
|
|
19038
|
+
.terminal-tab-title { font-size: var(--text-xs); }
|
|
18796
19039
|
.terminal-new-tab-button,
|
|
18797
19040
|
.terminal-new-tab-menu-item { padding: 0.3rem 0.48rem; }
|
|
18798
19041
|
|
|
18799
19042
|
.widget-area { padding: 0.28rem 0.46rem; }
|
|
18800
19043
|
.release-npm-widget { gap: 0.36rem; padding: 0.46rem; }
|
|
18801
19044
|
.release-npm-stream-header { padding: 0.24rem 0.34rem; }
|
|
18802
|
-
.release-npm-terminal { padding: 0.44rem 0.36rem; font-size:
|
|
19045
|
+
.release-npm-terminal { padding: 0.44rem 0.36rem; font-size: var(--text-xs); }
|
|
18803
19046
|
.todo-widget { padding: 0.3rem 0.36rem; }
|
|
18804
19047
|
.todo-widget[open] { gap: 0.22rem; padding-bottom: 0.34rem; }
|
|
18805
19048
|
.todo-widget-body { gap: 0.2rem; }
|
|
@@ -18814,7 +19057,11 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
|
|
|
18814
19057
|
.message.has-copy-action:not(.toolResult):not(.bashExecution):not(.compactionSummary) > .message-header,
|
|
18815
19058
|
.message.has-copy-action:not(.toolResult):not(.bashExecution):not(.compactionSummary) > .message-body,
|
|
18816
19059
|
.message.has-copy-action > .message-collapse > summary.message-header { padding-right: 2.2rem; }
|
|
18817
|
-
|
|
19060
|
+
/* Copy + edit/retry side by side need room; otherwise the timestamp sits under the buttons. */
|
|
19061
|
+
.message-edit-retry-button { top: 0.28rem; right: 2.3rem; width: 1.8rem; min-width: 1.8rem; min-height: 1.8rem; }
|
|
19062
|
+
.message.has-edit-retry-action:not(.toolResult):not(.bashExecution):not(.compactionSummary) > .message-header,
|
|
19063
|
+
.message.has-edit-retry-action:not(.toolResult):not(.bashExecution):not(.compactionSummary) > .message-body { padding-right: 4.3rem; }
|
|
19064
|
+
.code-block { padding: 0.48rem; font-size: var(--text-xs); }
|
|
18818
19065
|
details { padding: 0.42rem; }
|
|
18819
19066
|
.statusbar { padding: 0.22rem 0.34rem; font-size: var(--mobile-label-text); }
|
|
18820
19067
|
.footer-metric,
|
|
@@ -18838,7 +19085,7 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
|
|
|
18838
19085
|
grid-column: 1 / -1;
|
|
18839
19086
|
padding: 0.08rem 0.12rem 0.02rem;
|
|
18840
19087
|
color: rgba(var(--ctp-subtext-rgb), 0.68);
|
|
18841
|
-
font-size:
|
|
19088
|
+
font-size: var(--text-xs);
|
|
18842
19089
|
font-weight: 900;
|
|
18843
19090
|
letter-spacing: 0.11em;
|
|
18844
19091
|
text-transform: uppercase;
|
|
@@ -18859,7 +19106,7 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
|
|
|
18859
19106
|
html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-metric-label { grid-area: label; }
|
|
18860
19107
|
html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-metric-value { grid-area: value; }
|
|
18861
19108
|
html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-metric-label,
|
|
18862
|
-
html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-meta-label { font-size:
|
|
19109
|
+
html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-meta-label { font-size: var(--text-xs); letter-spacing: 0.08em; }
|
|
18863
19110
|
html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-metric-value,
|
|
18864
19111
|
html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-meta-value { font-size: 0.76rem; line-height: 1.2; }
|
|
18865
19112
|
html:not([data-mobile-shell="v2"]):not([data-tablet-shell="v2"]) body.footer-details-expanded .footer-line-meta .footer-meta {
|
|
@@ -18887,7 +19134,7 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
|
|
|
18887
19134
|
line-height: 1.3;
|
|
18888
19135
|
}
|
|
18889
19136
|
.composer-row { gap: 0.24rem; margin-top: 0.3rem; }
|
|
18890
|
-
.composer-row button { padding: 0.28rem 0.36rem; font-size:
|
|
19137
|
+
.composer-row button { padding: 0.28rem 0.36rem; font-size: var(--text-xs); }
|
|
18891
19138
|
.composer-row button.primary { font-size: 0.8rem; }
|
|
18892
19139
|
.composer-actions-panel { gap: 0.34rem; padding: 0.56rem; }
|
|
18893
19140
|
.composer-actions-panel label { gap: 0.42rem; font-size: var(--mobile-label-text); }
|
|
@@ -19009,3 +19256,12 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
|
|
|
19009
19256
|
opacity: 0 !important;
|
|
19010
19257
|
}
|
|
19011
19258
|
}
|
|
19259
|
+
|
|
19260
|
+
/* Windows High Contrast / forced colors: keep controls, cards, and the active choice visible. */
|
|
19261
|
+
@media (forced-colors: active) {
|
|
19262
|
+
button, select, input, textarea { border: 1px solid ButtonText; }
|
|
19263
|
+
.message, .side-panel-section, .footer-meta, .notice-toast, .undo-toast, .command-palette-item, .native-selector-item { border: 1px solid CanvasText; }
|
|
19264
|
+
.command-palette-item.active, .native-selector-item.keyboard-active, .footer-model-option.active, .terminal-tab.active > button { outline: 2px solid Highlight; outline-offset: 1px; }
|
|
19265
|
+
.run-indicator-pulse, .subagent-state-dot { background: Highlight; forced-color-adjust: none; }
|
|
19266
|
+
.message::before { background: CanvasText; box-shadow: none; }
|
|
19267
|
+
}
|