@firstpick/pi-package-webui 0.9.6 → 0.9.8
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 +13 -5
- package/bin/pi-webui.mjs +480 -96
- package/index.ts +2 -1
- package/lib/git-workflow-preferences.mjs +21 -1
- package/lib/optional-feature-catalog.mjs +1 -1
- package/lib/session-tree-event-targets.mjs +70 -0
- package/lib/subagent-launch-policy.mjs +375 -0
- package/lib/subagent-launch-slots.mjs +2 -1
- package/package.json +1 -1
- package/public/app.js +1348 -131
- package/public/guided-git-command-state.mjs +175 -1
- package/public/index.html +48 -9
- package/public/service-worker.js +1 -1
- package/public/styles.css +387 -34
- package/public/transcript-renderer.mjs +62 -0
- package/tests/boot-failure-diagnostics.test.mjs +3 -3
- package/tests/browser/control-visibility.spec.mjs +141 -2
- package/tests/browser/events-tree-context-menu.spec.mjs +240 -0
- package/tests/browser/footer-model-advanced-layout.spec.mjs +512 -0
- package/tests/browser/guided-git-extension-command.spec.mjs +180 -0
- package/tests/browser/guided-git-fallback.spec.mjs +218 -0
- package/tests/browser/interaction-continuity.spec.mjs +33 -0
- package/tests/codex-fast-mode-static.test.mjs +2 -2
- package/tests/compact-sections-static.test.mjs +4 -0
- package/tests/compaction-static.test.mjs +1 -1
- package/tests/composer-action-grid-reorder-static.test.mjs +3 -3
- package/tests/control-visibility-static.test.mjs +66 -3
- package/tests/controls-layout-static.test.mjs +3 -3
- package/tests/events-tree-context-menu-static.test.mjs +131 -0
- package/tests/fast-mode-client-static.test.mjs +5 -2
- 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 +34 -3
- package/tests/git-footer-context-menu-static.test.mjs +103 -1
- package/tests/git-workflow-preferences.test.mjs +30 -1
- package/tests/guided-git-activation-http.test.mjs +194 -0
- package/tests/guided-git-activation-static.test.mjs +80 -0
- package/tests/guided-git-activation.test.mjs +244 -0
- package/tests/guided-git-fallback-runtime.test.mjs +419 -0
- package/tests/guided-git-fallback-ui-static.test.mjs +60 -0
- package/tests/guided-git-message-reliability-static.test.mjs +9 -7
- package/tests/guided-git-optional-feature.test.mjs +31 -0
- package/tests/http-endpoints-harness.test.mjs +3 -0
- package/tests/interaction-state-stability-static.test.mjs +1 -1
- package/tests/intercom-conversation-viewer-static.test.mjs +3 -3
- package/tests/main-output-loading-static.test.mjs +11 -9
- 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 +92 -9
- package/tests/open-issue-wizard-static.test.mjs +1 -1
- package/tests/persistent-ui-layout-static.test.mjs +3 -3
- package/tests/prompt-input-vertical-scroll-static.test.mjs +6 -6
- package/tests/prompt-routing-input-clear-static.test.mjs +1 -1
- package/tests/questionnaire-dialog.test.mjs +3 -3
- package/tests/remote-auth-settings-harness.test.mjs +23 -0
- package/tests/resource-defaults-helper.test.mjs +12 -0
- package/tests/session-sampling-helper.test.mjs +1 -0
- package/tests/session-sampling-ui-static.test.mjs +3 -3
- package/tests/session-tree-event-targets.test.mjs +106 -0
- package/tests/side-panel-section-height-removal-static.test.mjs +3 -3
- package/tests/subagent-launch-policy.test.mjs +532 -0
- package/tests/subagent-observability-static.test.mjs +2 -2
- package/tests/subagents-helper.test.mjs +211 -1
- package/tests/syntax-highlighting-static.test.mjs +3 -3
- package/tests/tab-close-continuity-static.test.mjs +25 -0
- package/tests/theme-customizer-static.test.mjs +1 -1
- package/tests/thinking-block-grouping.test.mjs +79 -0
- package/webui-rpc-helper.mjs +220 -3
package/public/styles.css
CHANGED
|
@@ -270,8 +270,9 @@ textarea {
|
|
|
270
270
|
}
|
|
271
271
|
textarea::placeholder { color: rgba(var(--ctp-subtext-rgb), 0.62); }
|
|
272
272
|
#promptInput {
|
|
273
|
+
--prompt-input-block-chrome: calc(1.8rem + 2px);
|
|
273
274
|
min-height: calc(1.5em + 1.8rem);
|
|
274
|
-
max-height:
|
|
275
|
+
max-height: calc(6lh + var(--prompt-input-block-chrome));
|
|
275
276
|
resize: none;
|
|
276
277
|
overflow-y: auto;
|
|
277
278
|
overscroll-behavior-y: contain;
|
|
@@ -1154,6 +1155,41 @@ body.terminal-tabs-resizing * {
|
|
|
1154
1155
|
text-align: left;
|
|
1155
1156
|
box-shadow: none;
|
|
1156
1157
|
}
|
|
1158
|
+
.event-tree-context-menu {
|
|
1159
|
+
width: min(18rem, calc(100vw - 1rem));
|
|
1160
|
+
max-width: calc(100vw - 1rem);
|
|
1161
|
+
}
|
|
1162
|
+
.event-tree-context-menu-label {
|
|
1163
|
+
padding: 0.38rem 0.58rem 0.24rem;
|
|
1164
|
+
color: var(--ctp-subtext);
|
|
1165
|
+
font-size: var(--text-xs);
|
|
1166
|
+
font-weight: 850;
|
|
1167
|
+
letter-spacing: 0.06em;
|
|
1168
|
+
text-transform: uppercase;
|
|
1169
|
+
}
|
|
1170
|
+
.event-tree-context-menu [role="menuitemradio"]::before {
|
|
1171
|
+
content: "";
|
|
1172
|
+
display: inline-block;
|
|
1173
|
+
width: 1rem;
|
|
1174
|
+
margin-right: 0.3rem;
|
|
1175
|
+
color: var(--ctp-green);
|
|
1176
|
+
font-weight: 900;
|
|
1177
|
+
}
|
|
1178
|
+
.event-tree-context-menu [role="menuitemradio"][aria-checked="true"]::before { content: "✓"; }
|
|
1179
|
+
.event-tree-context-menu-separator {
|
|
1180
|
+
height: 1px;
|
|
1181
|
+
margin: 0.28rem 0.45rem;
|
|
1182
|
+
background: rgba(180, 190, 254, 0.16);
|
|
1183
|
+
}
|
|
1184
|
+
.event-tree-context-menu-status {
|
|
1185
|
+
padding: 0.38rem 0.58rem;
|
|
1186
|
+
color: var(--ctp-subtext);
|
|
1187
|
+
font-size: var(--text-xs);
|
|
1188
|
+
line-height: 1.4;
|
|
1189
|
+
overflow-wrap: anywhere;
|
|
1190
|
+
}
|
|
1191
|
+
.event-tree-context-menu-status.warn { color: var(--warning); }
|
|
1192
|
+
.event-tree-context-menu-status.error { color: var(--danger); }
|
|
1157
1193
|
.side-panel-context-menu {
|
|
1158
1194
|
max-height: calc(100vh - 1rem);
|
|
1159
1195
|
max-height: calc(100dvh - 1rem);
|
|
@@ -5424,7 +5460,7 @@ button.subagent-gate-attempt:focus-visible {
|
|
|
5424
5460
|
body.terminal-tabs-left .chat-panel {
|
|
5425
5461
|
display: grid;
|
|
5426
5462
|
grid-template-columns: minmax(0, 1fr) minmax(13rem, var(--terminal-tabs-sidebar-width));
|
|
5427
|
-
grid-template-rows: auto auto auto minmax(0, 1fr) auto auto auto auto auto auto
|
|
5463
|
+
grid-template-rows: auto auto auto minmax(0, 1fr) auto auto auto auto auto auto;
|
|
5428
5464
|
align-items: stretch;
|
|
5429
5465
|
overflow: visible;
|
|
5430
5466
|
}
|
|
@@ -5529,11 +5565,9 @@ button.subagent-gate-attempt:focus-visible {
|
|
|
5529
5565
|
body.terminal-tabs-left .widget-area,
|
|
5530
5566
|
body.terminal-tabs-left .subagent-terminal-view,
|
|
5531
5567
|
body.terminal-tabs-left .chat-search-bar,
|
|
5532
|
-
body.terminal-tabs-left .main-output-
|
|
5533
|
-
body.terminal-tabs-left .chat,
|
|
5568
|
+
body.terminal-tabs-left .main-output-surface,
|
|
5534
5569
|
body.terminal-tabs-left .run-indicator-host,
|
|
5535
5570
|
body.terminal-tabs-left .feedback-tray,
|
|
5536
|
-
body.terminal-tabs-left .jump-to-latest-button,
|
|
5537
5571
|
body.terminal-tabs-left .statusbar,
|
|
5538
5572
|
body.terminal-tabs-left .context-meter-bar,
|
|
5539
5573
|
body.terminal-tabs-left .git-workflow-panel,
|
|
@@ -5547,17 +5581,15 @@ button.subagent-gate-attempt:focus-visible {
|
|
|
5547
5581
|
body.terminal-tabs-left .widget-area { grid-row: 2; }
|
|
5548
5582
|
body.terminal-tabs-left .subagent-terminal-view { grid-row: 1 / -1; }
|
|
5549
5583
|
body.terminal-tabs-left .chat-search-bar { grid-row: 3; }
|
|
5550
|
-
body.terminal-tabs-left .main-output-
|
|
5551
|
-
body.terminal-tabs-left .
|
|
5552
|
-
body.terminal-tabs-left .main-output-loading { align-self: start; justify-self: center; margin-top: 0.75rem; }
|
|
5584
|
+
body.terminal-tabs-left .main-output-surface { grid-row: 4; }
|
|
5585
|
+
body.terminal-tabs-left .main-output-loading { top: 0.75rem; }
|
|
5553
5586
|
body.terminal-tabs-left .run-indicator-host { grid-row: 5; }
|
|
5554
5587
|
body.terminal-tabs-left .feedback-tray { grid-row: 6; }
|
|
5555
|
-
body.terminal-tabs-left .
|
|
5556
|
-
body.terminal-tabs-left .
|
|
5557
|
-
body.terminal-tabs-left .
|
|
5558
|
-
body.terminal-tabs-left .git-workflow-panel { grid-row: 10; }
|
|
5588
|
+
body.terminal-tabs-left .statusbar { grid-row: 7; }
|
|
5589
|
+
body.terminal-tabs-left .context-meter-bar { grid-row: 8; }
|
|
5590
|
+
body.terminal-tabs-left .git-workflow-panel { grid-row: 9; }
|
|
5559
5591
|
body.terminal-tabs-left .composer,
|
|
5560
|
-
body.terminal-tabs-left .composer-remote-mic-consent { grid-row:
|
|
5592
|
+
body.terminal-tabs-left .composer-remote-mic-consent { grid-row: 10; }
|
|
5561
5593
|
body.terminal-tabs-left .side-panel-button-chevron { transform: scaleX(-1); }
|
|
5562
5594
|
|
|
5563
5595
|
body.terminal-tabs-left.terminal-tabs-sidebar-start .chat-panel {
|
|
@@ -5584,11 +5616,9 @@ button.subagent-gate-attempt:focus-visible {
|
|
|
5584
5616
|
body.terminal-tabs-left.terminal-tabs-sidebar-start .widget-area,
|
|
5585
5617
|
body.terminal-tabs-left.terminal-tabs-sidebar-start .subagent-terminal-view,
|
|
5586
5618
|
body.terminal-tabs-left.terminal-tabs-sidebar-start .chat-search-bar,
|
|
5587
|
-
body.terminal-tabs-left.terminal-tabs-sidebar-start .main-output-
|
|
5588
|
-
body.terminal-tabs-left.terminal-tabs-sidebar-start .chat,
|
|
5619
|
+
body.terminal-tabs-left.terminal-tabs-sidebar-start .main-output-surface,
|
|
5589
5620
|
body.terminal-tabs-left.terminal-tabs-sidebar-start .run-indicator-host,
|
|
5590
5621
|
body.terminal-tabs-left.terminal-tabs-sidebar-start .feedback-tray,
|
|
5591
|
-
body.terminal-tabs-left.terminal-tabs-sidebar-start .jump-to-latest-button,
|
|
5592
5622
|
body.terminal-tabs-left.terminal-tabs-sidebar-start .statusbar,
|
|
5593
5623
|
body.terminal-tabs-left.terminal-tabs-sidebar-start .context-meter-bar,
|
|
5594
5624
|
body.terminal-tabs-left.terminal-tabs-sidebar-start .git-workflow-panel,
|
|
@@ -6068,6 +6098,17 @@ button.footer-meta {
|
|
|
6068
6098
|
.footer-worktree.footer-meta-action {
|
|
6069
6099
|
border-color: rgba(166, 227, 161, 0.24);
|
|
6070
6100
|
}
|
|
6101
|
+
body.footer-model-picker-open .workspace-column {
|
|
6102
|
+
position: relative;
|
|
6103
|
+
z-index: 112;
|
|
6104
|
+
}
|
|
6105
|
+
body.footer-model-picker-open .workspace-column > .chat-panel,
|
|
6106
|
+
body.footer-model-picker-open .statusbar {
|
|
6107
|
+
overflow: visible;
|
|
6108
|
+
}
|
|
6109
|
+
body.footer-model-picker-open .statusbar {
|
|
6110
|
+
z-index: 113;
|
|
6111
|
+
}
|
|
6071
6112
|
.footer-model-picker {
|
|
6072
6113
|
position: absolute;
|
|
6073
6114
|
left: var(--footer-model-picker-left, auto);
|
|
@@ -6087,6 +6128,59 @@ button.footer-meta {
|
|
|
6087
6128
|
linear-gradient(145deg, rgba(var(--ctp-crust-rgb), 0.98), rgba(var(--ctp-base-rgb), 0.96));
|
|
6088
6129
|
box-shadow: 0 1.2rem 2.8rem rgba(var(--ctp-crust-rgb), 0.68), 0 0 1.4rem rgba(148, 226, 213, 0.14), inset 0 1px 0 rgba(255,255,255,0.055);
|
|
6089
6130
|
}
|
|
6131
|
+
.footer-model-picker-advanced {
|
|
6132
|
+
width: max-content;
|
|
6133
|
+
min-width: min(14.5rem, calc(100vw - 1rem));
|
|
6134
|
+
max-width: calc(100vw - 1rem);
|
|
6135
|
+
overflow: hidden;
|
|
6136
|
+
}
|
|
6137
|
+
.footer-model-picker-advanced .footer-model-picker-source {
|
|
6138
|
+
width: 100%;
|
|
6139
|
+
max-width: none;
|
|
6140
|
+
}
|
|
6141
|
+
.footer-model-provider-columns {
|
|
6142
|
+
display: grid;
|
|
6143
|
+
grid-auto-flow: column;
|
|
6144
|
+
grid-auto-columns: 13rem;
|
|
6145
|
+
align-items: start;
|
|
6146
|
+
gap: 0.58rem;
|
|
6147
|
+
width: fit-content;
|
|
6148
|
+
min-width: 0;
|
|
6149
|
+
max-width: calc(100vw - 2.5rem);
|
|
6150
|
+
max-height: min(38dvh, 22rem);
|
|
6151
|
+
overflow: auto;
|
|
6152
|
+
padding: 0.08rem 0.08rem 0.3rem;
|
|
6153
|
+
overscroll-behavior: contain;
|
|
6154
|
+
scrollbar-gutter: stable;
|
|
6155
|
+
}
|
|
6156
|
+
.footer-model-provider-column {
|
|
6157
|
+
display: grid;
|
|
6158
|
+
gap: 0.34rem;
|
|
6159
|
+
min-width: 0;
|
|
6160
|
+
padding: 0.48rem;
|
|
6161
|
+
border: 1px solid rgba(180, 190, 254, 0.18);
|
|
6162
|
+
border-radius: 0.78rem;
|
|
6163
|
+
background: rgba(var(--ctp-crust-rgb), 0.46);
|
|
6164
|
+
transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
|
|
6165
|
+
}
|
|
6166
|
+
.footer-model-provider-column:focus-within {
|
|
6167
|
+
border-color: rgba(148, 226, 213, 0.56);
|
|
6168
|
+
background: rgba(148, 226, 213, 0.06);
|
|
6169
|
+
box-shadow: 0 0 0 2px rgba(148, 226, 213, 0.10), 0 0 1rem rgba(148, 226, 213, 0.14);
|
|
6170
|
+
}
|
|
6171
|
+
.footer-model-provider-title {
|
|
6172
|
+
min-width: 0;
|
|
6173
|
+
padding: 0.08rem 0.16rem 0.28rem;
|
|
6174
|
+
overflow: hidden;
|
|
6175
|
+
color: var(--ctp-pink);
|
|
6176
|
+
border-bottom: 1px solid rgba(245, 194, 231, 0.22);
|
|
6177
|
+
font-size: var(--text-xs);
|
|
6178
|
+
font-weight: 950;
|
|
6179
|
+
letter-spacing: 0.09em;
|
|
6180
|
+
text-overflow: ellipsis;
|
|
6181
|
+
text-transform: uppercase;
|
|
6182
|
+
white-space: nowrap;
|
|
6183
|
+
}
|
|
6090
6184
|
.footer-model-picker-title {
|
|
6091
6185
|
color: var(--ctp-teal);
|
|
6092
6186
|
font-size: var(--text-xs);
|
|
@@ -6152,12 +6246,24 @@ button.footer-meta {
|
|
|
6152
6246
|
border-color: rgba(166, 227, 161, 0.46);
|
|
6153
6247
|
box-shadow: inset 3px 0 0 var(--ctp-green), 0 0 1rem rgba(166, 227, 161, 0.14);
|
|
6154
6248
|
}
|
|
6155
|
-
.footer-model-option[data-footer-model-key] {
|
|
6249
|
+
.footer-model-picker:not(.footer-model-picker-advanced) .footer-model-option[data-footer-model-key] {
|
|
6156
6250
|
position: relative;
|
|
6157
6251
|
cursor: grab;
|
|
6158
6252
|
touch-action: none;
|
|
6159
6253
|
user-select: none;
|
|
6160
6254
|
}
|
|
6255
|
+
.footer-model-picker-advanced .footer-model-option[data-footer-model-key] {
|
|
6256
|
+
min-width: 0;
|
|
6257
|
+
cursor: grab;
|
|
6258
|
+
touch-action: none;
|
|
6259
|
+
user-select: none;
|
|
6260
|
+
}
|
|
6261
|
+
.footer-model-picker-advanced .footer-model-option:focus-visible {
|
|
6262
|
+
border-color: var(--ctp-teal);
|
|
6263
|
+
outline: 2px solid rgba(148, 226, 213, 0.74);
|
|
6264
|
+
outline-offset: 1px;
|
|
6265
|
+
box-shadow: inset 3px 0 0 var(--ctp-teal), 0 0 0 3px rgba(148, 226, 213, 0.13), 0 0 1rem rgba(148, 226, 213, 0.22);
|
|
6266
|
+
}
|
|
6161
6267
|
.footer-model-option.dragging {
|
|
6162
6268
|
cursor: grabbing;
|
|
6163
6269
|
border-color: rgba(148, 226, 213, 0.72);
|
|
@@ -8181,6 +8287,13 @@ button.git-workflow-step:hover:not(:disabled) {
|
|
|
8181
8287
|
color: rgba(var(--ctp-subtext-rgb), 0.64);
|
|
8182
8288
|
font-size: var(--text-xs);
|
|
8183
8289
|
}
|
|
8290
|
+
.main-output-surface {
|
|
8291
|
+
position: relative;
|
|
8292
|
+
display: flex;
|
|
8293
|
+
flex: 1 1 auto;
|
|
8294
|
+
min-width: 0;
|
|
8295
|
+
min-height: 0;
|
|
8296
|
+
}
|
|
8184
8297
|
.chat {
|
|
8185
8298
|
position: relative;
|
|
8186
8299
|
display: flex;
|
|
@@ -8194,15 +8307,16 @@ button.git-workflow-step:hover:not(:disabled) {
|
|
|
8194
8307
|
}
|
|
8195
8308
|
.main-output-loading[hidden] { display: none !important; }
|
|
8196
8309
|
.main-output-loading {
|
|
8197
|
-
position:
|
|
8310
|
+
position: absolute;
|
|
8198
8311
|
z-index: 13;
|
|
8312
|
+
top: 0.55rem;
|
|
8313
|
+
left: 50%;
|
|
8199
8314
|
display: inline-flex;
|
|
8200
|
-
flex: 0 0 auto;
|
|
8201
|
-
align-self: center;
|
|
8202
8315
|
align-items: center;
|
|
8203
8316
|
gap: 0.48rem;
|
|
8204
8317
|
max-width: calc(100% - 1.2rem);
|
|
8205
|
-
margin: 0
|
|
8318
|
+
margin: 0;
|
|
8319
|
+
transform: translateX(-50%);
|
|
8206
8320
|
padding: 0.42rem 0.7rem;
|
|
8207
8321
|
pointer-events: none;
|
|
8208
8322
|
user-select: none;
|
|
@@ -8288,15 +8402,24 @@ button.git-workflow-step:hover:not(:disabled) {
|
|
|
8288
8402
|
}
|
|
8289
8403
|
.jump-to-latest-button[hidden] { display: none; }
|
|
8290
8404
|
.jump-to-latest-button {
|
|
8291
|
-
|
|
8292
|
-
z-index:
|
|
8293
|
-
|
|
8405
|
+
position: absolute;
|
|
8406
|
+
z-index: 14;
|
|
8407
|
+
bottom: 0.75rem;
|
|
8408
|
+
left: 50%;
|
|
8409
|
+
margin: 0;
|
|
8410
|
+
transform: translateX(-50%);
|
|
8294
8411
|
color: #11111b;
|
|
8295
8412
|
font-weight: 900;
|
|
8296
8413
|
background: linear-gradient(120deg, var(--ctp-teal), var(--ctp-blue), var(--ctp-mauve));
|
|
8297
8414
|
border-color: transparent;
|
|
8298
8415
|
box-shadow: 0 0 1.2rem var(--glow-teal), 0 0.7rem 1.6rem rgba(0, 0, 0, 0.28);
|
|
8299
8416
|
}
|
|
8417
|
+
.jump-to-latest-button:hover {
|
|
8418
|
+
transform: translateX(-50%) translateY(-1px);
|
|
8419
|
+
}
|
|
8420
|
+
.jump-to-latest-button:active {
|
|
8421
|
+
transform: translateX(-50%) translateY(0);
|
|
8422
|
+
}
|
|
8300
8423
|
.feedback-tray[hidden] { display: none; }
|
|
8301
8424
|
.feedback-tray {
|
|
8302
8425
|
display: flex;
|
|
@@ -8647,9 +8770,21 @@ button.git-workflow-step:hover:not(:disabled) {
|
|
|
8647
8770
|
transition: transform 140ms ease;
|
|
8648
8771
|
}
|
|
8649
8772
|
.message-collapse[open] > summary.message-header::after { transform: rotate(90deg); }
|
|
8650
|
-
.thinking-disclosure > .message-header {
|
|
8773
|
+
.thinking-disclosure > .message-header {
|
|
8774
|
+
cursor: pointer;
|
|
8775
|
+
display: grid;
|
|
8776
|
+
grid-template-columns: minmax(0, 1fr) auto auto;
|
|
8777
|
+
grid-template-areas:
|
|
8778
|
+
"role timestamp disclosure"
|
|
8779
|
+
"preview preview preview";
|
|
8780
|
+
column-gap: 0.75rem;
|
|
8781
|
+
row-gap: 0.3rem;
|
|
8782
|
+
}
|
|
8783
|
+
.thinking-disclosure > .message-header > .message-role { grid-area: role; min-width: 0; }
|
|
8784
|
+
.thinking-disclosure > .message-header > .muted { grid-area: timestamp; }
|
|
8785
|
+
.thinking-disclosure > .message-header::after { grid-area: disclosure; margin-left: 0; }
|
|
8651
8786
|
.thinking-disclosure-preview {
|
|
8652
|
-
|
|
8787
|
+
grid-area: preview;
|
|
8653
8788
|
min-width: 0;
|
|
8654
8789
|
overflow: hidden;
|
|
8655
8790
|
color: rgba(var(--ctp-subtext-rgb), 0.78);
|
|
@@ -11483,6 +11618,37 @@ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-
|
|
|
11483
11618
|
word-break: break-word;
|
|
11484
11619
|
text-shadow: 0 0 0.7rem rgba(166, 227, 161, 0.25);
|
|
11485
11620
|
}
|
|
11621
|
+
.event-filter-bar {
|
|
11622
|
+
display: grid;
|
|
11623
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
11624
|
+
gap: 0.4rem;
|
|
11625
|
+
align-items: center;
|
|
11626
|
+
margin-bottom: 0.5rem;
|
|
11627
|
+
}
|
|
11628
|
+
.event-filter-bar label {
|
|
11629
|
+
color: var(--ctp-subtext);
|
|
11630
|
+
font-size: var(--text-xs);
|
|
11631
|
+
font-weight: 800;
|
|
11632
|
+
}
|
|
11633
|
+
.event-filter-bar select {
|
|
11634
|
+
width: 100%;
|
|
11635
|
+
min-width: 0;
|
|
11636
|
+
min-height: 2rem;
|
|
11637
|
+
padding-block: 0.28rem;
|
|
11638
|
+
font-size: var(--text-xs);
|
|
11639
|
+
}
|
|
11640
|
+
.event-filter-status {
|
|
11641
|
+
color: var(--ctp-overlay);
|
|
11642
|
+
font-size: var(--text-xs);
|
|
11643
|
+
white-space: nowrap;
|
|
11644
|
+
}
|
|
11645
|
+
.event-filter-empty {
|
|
11646
|
+
margin: 0 0 0.5rem;
|
|
11647
|
+
padding: 0.55rem 0.6rem;
|
|
11648
|
+
border: 1px dashed rgba(180, 190, 254, 0.2);
|
|
11649
|
+
border-radius: 0.46rem;
|
|
11650
|
+
font-size: var(--text-xs);
|
|
11651
|
+
}
|
|
11486
11652
|
.event-log {
|
|
11487
11653
|
max-height: min(17rem, 32vh);
|
|
11488
11654
|
overflow: auto;
|
|
@@ -11503,7 +11669,9 @@ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-
|
|
|
11503
11669
|
box-shadow: none;
|
|
11504
11670
|
text-align: left;
|
|
11505
11671
|
overflow-wrap: anywhere;
|
|
11672
|
+
cursor: context-menu;
|
|
11506
11673
|
}
|
|
11674
|
+
.event[hidden] { display: none; }
|
|
11507
11675
|
.event:hover,
|
|
11508
11676
|
.event:focus-visible {
|
|
11509
11677
|
transform: none;
|
|
@@ -11511,6 +11679,58 @@ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-
|
|
|
11511
11679
|
background: linear-gradient(90deg, rgba(148, 226, 213, 0.12), rgba(137, 180, 250, 0.07));
|
|
11512
11680
|
box-shadow: inset 2px 0 0 rgba(148, 226, 213, 0.72);
|
|
11513
11681
|
}
|
|
11682
|
+
.event-main {
|
|
11683
|
+
display: flex;
|
|
11684
|
+
align-items: baseline;
|
|
11685
|
+
gap: 0.42rem;
|
|
11686
|
+
min-width: 0;
|
|
11687
|
+
}
|
|
11688
|
+
.event-time {
|
|
11689
|
+
flex: 0 0 auto;
|
|
11690
|
+
color: var(--ctp-overlay);
|
|
11691
|
+
font-size: var(--text-xs);
|
|
11692
|
+
}
|
|
11693
|
+
.event-summary {
|
|
11694
|
+
min-width: 0;
|
|
11695
|
+
font-weight: 700;
|
|
11696
|
+
}
|
|
11697
|
+
.event-details {
|
|
11698
|
+
display: flex;
|
|
11699
|
+
flex-wrap: wrap;
|
|
11700
|
+
gap: 0.22rem 0.58rem;
|
|
11701
|
+
margin-top: 0.2rem;
|
|
11702
|
+
color: var(--ctp-subtext);
|
|
11703
|
+
font-size: var(--text-xs);
|
|
11704
|
+
}
|
|
11705
|
+
.event-detail {
|
|
11706
|
+
min-width: 0;
|
|
11707
|
+
max-width: 100%;
|
|
11708
|
+
overflow-wrap: anywhere;
|
|
11709
|
+
}
|
|
11710
|
+
.event-detail-label { color: var(--ctp-overlay); }
|
|
11711
|
+
.event-detail.success { color: var(--ctp-green); }
|
|
11712
|
+
.event-detail.error { color: var(--danger); }
|
|
11713
|
+
.event-detail.info { color: var(--ctp-blue); }
|
|
11714
|
+
.event-log[data-display-mode="compact"] .event {
|
|
11715
|
+
min-height: 1.72rem;
|
|
11716
|
+
padding: 0.18rem 0.34rem;
|
|
11717
|
+
border-radius: 0.28rem;
|
|
11718
|
+
}
|
|
11719
|
+
.event-log[data-display-mode="compact"] .event-details { display: none; }
|
|
11720
|
+
.event-log[data-display-mode="compact"] .event-main { gap: 0.34rem; }
|
|
11721
|
+
.event-log[data-display-mode="compact"] .event[data-event-tool-phase] {
|
|
11722
|
+
padding-left: 0.46rem;
|
|
11723
|
+
border-left: 0.18rem solid var(--ctp-blue);
|
|
11724
|
+
background: rgba(137, 180, 250, 0.07);
|
|
11725
|
+
}
|
|
11726
|
+
.event-log[data-display-mode="compact"] .event[data-event-tool-phase="finish"] {
|
|
11727
|
+
border-left-color: var(--ctp-green);
|
|
11728
|
+
background: rgba(166, 227, 161, 0.06);
|
|
11729
|
+
}
|
|
11730
|
+
.event-log[data-display-mode="compact"] .event[data-event-tool-phase].error {
|
|
11731
|
+
border-left-color: var(--danger);
|
|
11732
|
+
background: rgba(var(--ctp-red-rgb), 0.08);
|
|
11733
|
+
}
|
|
11514
11734
|
.event.warn { color: var(--warning); }
|
|
11515
11735
|
.event.error { color: var(--danger); }
|
|
11516
11736
|
.message.chat-event-target {
|
|
@@ -12208,6 +12428,125 @@ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-
|
|
|
12208
12428
|
padding: 0;
|
|
12209
12429
|
margin: 1rem 0 0;
|
|
12210
12430
|
}
|
|
12431
|
+
.extension-dialog.control-visibility-setup-dialog {
|
|
12432
|
+
width: min(48rem, calc(100vw - 1.5rem));
|
|
12433
|
+
max-height: min(88vh, calc(var(--visual-viewport-height, 100dvh) - 1.5rem));
|
|
12434
|
+
overflow: hidden;
|
|
12435
|
+
border-color: rgba(148, 226, 213, 0.44);
|
|
12436
|
+
box-shadow: 0 2rem 5rem var(--shadow), 0 0 2rem rgba(148, 226, 213, 0.18);
|
|
12437
|
+
}
|
|
12438
|
+
.control-visibility-setup-dialog form {
|
|
12439
|
+
display: grid;
|
|
12440
|
+
grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
|
|
12441
|
+
max-height: calc(min(88vh, var(--visual-viewport-height, 100dvh)) - 2rem);
|
|
12442
|
+
min-height: 0;
|
|
12443
|
+
}
|
|
12444
|
+
.control-visibility-setup-dialog h2 {
|
|
12445
|
+
color: var(--ctp-teal);
|
|
12446
|
+
text-shadow: 0 0 1rem rgba(148, 226, 213, 0.22);
|
|
12447
|
+
}
|
|
12448
|
+
.control-visibility-setup-toolbar {
|
|
12449
|
+
display: flex;
|
|
12450
|
+
flex-wrap: wrap;
|
|
12451
|
+
gap: 0.5rem;
|
|
12452
|
+
margin: 0.75rem 0;
|
|
12453
|
+
}
|
|
12454
|
+
.control-visibility-setup-toolbar button { min-width: 8rem; }
|
|
12455
|
+
.control-visibility-setup-body {
|
|
12456
|
+
display: grid;
|
|
12457
|
+
gap: 0.75rem;
|
|
12458
|
+
min-height: 0;
|
|
12459
|
+
max-height: min(58vh, 38rem);
|
|
12460
|
+
overflow: auto;
|
|
12461
|
+
padding: 0.15rem 0.18rem 0.25rem 0;
|
|
12462
|
+
overscroll-behavior: contain;
|
|
12463
|
+
scrollbar-width: thin;
|
|
12464
|
+
}
|
|
12465
|
+
.control-visibility-setup-group {
|
|
12466
|
+
min-width: 0;
|
|
12467
|
+
margin: 0;
|
|
12468
|
+
padding: 0.72rem;
|
|
12469
|
+
border: 1px solid rgba(148, 226, 213, 0.2);
|
|
12470
|
+
border-radius: 0.85rem;
|
|
12471
|
+
background: rgba(var(--ctp-crust-rgb), 0.46);
|
|
12472
|
+
}
|
|
12473
|
+
.control-visibility-setup-group-label {
|
|
12474
|
+
padding: 0 0.3rem;
|
|
12475
|
+
color: var(--ctp-teal);
|
|
12476
|
+
font-size: 0.9rem;
|
|
12477
|
+
font-weight: 900;
|
|
12478
|
+
letter-spacing: 0.04em;
|
|
12479
|
+
}
|
|
12480
|
+
.control-visibility-setup-grid {
|
|
12481
|
+
display: grid;
|
|
12482
|
+
grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
|
|
12483
|
+
gap: 0.5rem;
|
|
12484
|
+
}
|
|
12485
|
+
.control-visibility-setup-toggle {
|
|
12486
|
+
display: grid;
|
|
12487
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
12488
|
+
gap: 0.58rem;
|
|
12489
|
+
align-items: center;
|
|
12490
|
+
min-height: 2.75rem;
|
|
12491
|
+
padding: 0.55rem 0.65rem;
|
|
12492
|
+
cursor: pointer;
|
|
12493
|
+
border: 1px solid rgba(180, 190, 254, 0.16);
|
|
12494
|
+
border-radius: 0.62rem;
|
|
12495
|
+
background: rgba(var(--ctp-surface-rgb), 0.34);
|
|
12496
|
+
}
|
|
12497
|
+
.control-visibility-setup-toggle:has(input:checked) {
|
|
12498
|
+
border-color: rgba(148, 226, 213, 0.4);
|
|
12499
|
+
background: rgba(148, 226, 213, 0.08);
|
|
12500
|
+
}
|
|
12501
|
+
.control-visibility-setup-toggle:focus-within {
|
|
12502
|
+
outline: 2px solid var(--ctp-teal);
|
|
12503
|
+
outline-offset: 2px;
|
|
12504
|
+
}
|
|
12505
|
+
.control-visibility-setup-toggle input {
|
|
12506
|
+
width: 1.2rem;
|
|
12507
|
+
min-width: 1.2rem;
|
|
12508
|
+
height: 1.2rem;
|
|
12509
|
+
min-height: 1.2rem;
|
|
12510
|
+
margin: 0;
|
|
12511
|
+
cursor: pointer;
|
|
12512
|
+
accent-color: var(--ctp-teal);
|
|
12513
|
+
box-shadow: none;
|
|
12514
|
+
}
|
|
12515
|
+
.control-visibility-setup-toggle-label {
|
|
12516
|
+
min-width: 0;
|
|
12517
|
+
color: var(--ctp-text);
|
|
12518
|
+
font-size: 0.84rem;
|
|
12519
|
+
font-weight: 800;
|
|
12520
|
+
line-height: 1.35;
|
|
12521
|
+
overflow-wrap: anywhere;
|
|
12522
|
+
}
|
|
12523
|
+
.control-visibility-setup-status {
|
|
12524
|
+
min-height: 1.2rem;
|
|
12525
|
+
margin: 0.7rem 0 0;
|
|
12526
|
+
font-size: 0.82rem;
|
|
12527
|
+
font-weight: 750;
|
|
12528
|
+
line-height: 1.4;
|
|
12529
|
+
}
|
|
12530
|
+
@media (max-width: 34rem) {
|
|
12531
|
+
.extension-dialog.control-visibility-setup-dialog {
|
|
12532
|
+
width: calc(100vw - 0.75rem);
|
|
12533
|
+
max-height: calc(var(--visual-viewport-height, 100dvh) - 0.75rem);
|
|
12534
|
+
}
|
|
12535
|
+
.control-visibility-setup-dialog form {
|
|
12536
|
+
max-height: calc(var(--visual-viewport-height, 100dvh) - 1.5rem);
|
|
12537
|
+
}
|
|
12538
|
+
.control-visibility-setup-grid { grid-template-columns: minmax(0, 1fr); }
|
|
12539
|
+
.control-visibility-setup-toolbar {
|
|
12540
|
+
display: grid;
|
|
12541
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
12542
|
+
}
|
|
12543
|
+
.control-visibility-setup-toolbar button,
|
|
12544
|
+
.control-visibility-setup-dialog menu button {
|
|
12545
|
+
min-width: 0;
|
|
12546
|
+
min-height: 44px;
|
|
12547
|
+
}
|
|
12548
|
+
}
|
|
12549
|
+
|
|
12211
12550
|
.extension-dialog.git-footer-visibility-dialog {
|
|
12212
12551
|
width: min(72rem, calc(100vw - 1.5rem));
|
|
12213
12552
|
max-height: min(86vh, calc(var(--visual-viewport-height, 100dvh) - 1.5rem));
|
|
@@ -12688,8 +13027,7 @@ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-
|
|
|
12688
13027
|
}
|
|
12689
13028
|
body.subagent-terminal-active .workspace-dashboard,
|
|
12690
13029
|
body.subagent-terminal-active .widget-area,
|
|
12691
|
-
body.subagent-terminal-active .main-output-
|
|
12692
|
-
body.subagent-terminal-active .chat,
|
|
13030
|
+
body.subagent-terminal-active .main-output-surface,
|
|
12693
13031
|
body.subagent-terminal-active .feedback-tray,
|
|
12694
13032
|
body.subagent-terminal-active .jump-to-latest-button,
|
|
12695
13033
|
body.subagent-terminal-active .statusbar,
|
|
@@ -14623,7 +14961,7 @@ body.subagent-terminal-active .composer-remote-mic-consent {
|
|
|
14623
14961
|
border-left-color: rgba(148, 226, 213, 0.24);
|
|
14624
14962
|
}
|
|
14625
14963
|
.git-side-panel-file {
|
|
14626
|
-
grid-template-columns: 1rem minmax(4rem, 1fr) auto;
|
|
14964
|
+
grid-template-columns: 1rem minmax(4rem, 1fr) auto auto;
|
|
14627
14965
|
gap: 0.24rem;
|
|
14628
14966
|
}
|
|
14629
14967
|
|
|
@@ -15155,7 +15493,7 @@ button.git-workflow-step { min-height: 1.9rem; }
|
|
|
15155
15493
|
}
|
|
15156
15494
|
.jump-to-latest-button {
|
|
15157
15495
|
min-height: 44px;
|
|
15158
|
-
margin: 0
|
|
15496
|
+
margin: 0;
|
|
15159
15497
|
padding: 0.55rem 0.92rem;
|
|
15160
15498
|
font-size: 0.86rem;
|
|
15161
15499
|
}
|
|
@@ -15264,9 +15602,24 @@ button.git-workflow-step { min-height: 1.9rem; }
|
|
|
15264
15602
|
right: max(0.55rem, env(safe-area-inset-right));
|
|
15265
15603
|
bottom: var(--footer-model-picker-bottom, calc(7.2rem + env(safe-area-inset-bottom)));
|
|
15266
15604
|
width: auto;
|
|
15605
|
+
max-width: none;
|
|
15267
15606
|
max-height: min(52dvh, 24rem);
|
|
15268
15607
|
z-index: 60;
|
|
15269
15608
|
}
|
|
15609
|
+
.footer-model-picker-advanced {
|
|
15610
|
+
overflow: hidden;
|
|
15611
|
+
}
|
|
15612
|
+
.footer-model-provider-columns {
|
|
15613
|
+
grid-auto-flow: row;
|
|
15614
|
+
grid-template-columns: minmax(0, 1fr);
|
|
15615
|
+
grid-auto-columns: auto;
|
|
15616
|
+
max-height: min(38dvh, 17rem);
|
|
15617
|
+
overflow-x: hidden;
|
|
15618
|
+
overflow-y: auto;
|
|
15619
|
+
}
|
|
15620
|
+
.footer-model-provider-column {
|
|
15621
|
+
width: 100%;
|
|
15622
|
+
}
|
|
15270
15623
|
.footer-line-main {
|
|
15271
15624
|
display: none;
|
|
15272
15625
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
@@ -15391,8 +15744,9 @@ button.git-workflow-step { min-height: 1.9rem; }
|
|
|
15391
15744
|
border-radius: 0.72rem;
|
|
15392
15745
|
}
|
|
15393
15746
|
#promptInput {
|
|
15747
|
+
--prompt-input-block-chrome: calc(1.04rem + 2px);
|
|
15394
15748
|
min-height: calc(1.35em + 1.05rem);
|
|
15395
|
-
max-height:
|
|
15749
|
+
max-height: calc(6lh + var(--prompt-input-block-chrome));
|
|
15396
15750
|
padding: 0.52rem 0.62rem;
|
|
15397
15751
|
resize: none;
|
|
15398
15752
|
font-size: 0.95rem;
|
|
@@ -15429,7 +15783,7 @@ button.git-workflow-step { min-height: 1.9rem; }
|
|
|
15429
15783
|
}
|
|
15430
15784
|
body.mobile-keyboard-open #promptInput {
|
|
15431
15785
|
min-height: calc(1.35em + 1.05rem);
|
|
15432
|
-
max-height: min(22dvh,
|
|
15786
|
+
max-height: min(22dvh, calc(6lh + var(--prompt-input-block-chrome)));
|
|
15433
15787
|
}
|
|
15434
15788
|
body.mobile-keyboard-open .composer-row {
|
|
15435
15789
|
grid-template-columns: 1fr;
|
|
@@ -17909,7 +18263,6 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
|
|
|
17909
18263
|
html[data-mobile-shell="v2"][data-mobile-presentation="essential"] .thinking-block:not([open]) > :not(summary) { display: none; }
|
|
17910
18264
|
html[data-mobile-shell="v2"] .message .message-collapse > summary,
|
|
17911
18265
|
html[data-mobile-shell="v2"] .thinking-block > summary { min-height: 44px; }
|
|
17912
|
-
html[data-mobile-shell="v2"] .jump-to-latest-button { bottom: calc(7.3rem + env(safe-area-inset-bottom)); }
|
|
17913
18266
|
html[data-mobile-shell="v2"] body.mobile-keyboard-open .mobile-shell-nav { display: none; }
|
|
17914
18267
|
html[data-mobile-shell="v2"] body.mobile-keyboard-open .widget-area,
|
|
17915
18268
|
html[data-mobile-shell="v2"] body.mobile-keyboard-open .statusbar { display: grid !important; }
|
|
@@ -19128,6 +19481,7 @@ body:has(#undoToast:not([hidden])) .notice-toast-stack { bottom: calc(max(1rem,
|
|
|
19128
19481
|
.composer-input-row { gap: 0.28rem; }
|
|
19129
19482
|
.composer-attach-button { padding: 0.36rem; border-radius: 0.64rem; }
|
|
19130
19483
|
#promptInput {
|
|
19484
|
+
--prompt-input-block-chrome: calc(0.88rem + 2px);
|
|
19131
19485
|
min-height: calc(1.3em + 0.88rem);
|
|
19132
19486
|
padding: 0.44rem 0.52rem;
|
|
19133
19487
|
font-size: 0.88rem;
|
|
@@ -19243,7 +19597,6 @@ body:has(#undoToast:not([hidden])) .notice-toast-stack { bottom: calc(max(1rem,
|
|
|
19243
19597
|
html[data-mobile-shell="v2"] .mobile-continuity-notice { top: calc(4.8rem + env(safe-area-inset-top)); right: 0.58rem; left: 0.58rem; padding: 0.44rem 0.56rem; }
|
|
19244
19598
|
html[data-mobile-shell="v2"] .mobile-failed-send-recovery { gap: 0.3rem; padding: 0.38rem; }
|
|
19245
19599
|
html[data-mobile-shell="v2"] .mobile-indicator { min-height: 1.2rem; padding: 0.06rem 0.3rem; font-size: 0.7rem; }
|
|
19246
|
-
html[data-mobile-shell="v2"] .jump-to-latest-button { bottom: calc(6.75rem + env(safe-area-inset-bottom)); }
|
|
19247
19600
|
html[data-mobile-shell="v2"] body.mobile-keyboard-open .composer { padding-bottom: calc(0.5rem + env(safe-area-inset-bottom)); }
|
|
19248
19601
|
}
|
|
19249
19602
|
|
|
@@ -2,6 +2,68 @@ const DEFAULT_SURFACE_SELECTOR = "[data-transcript-surface], .markdown-body, .co
|
|
|
2
2
|
const DESTRUCTIVE_KINDS = new Set(["reconcile", "destructive", "authoritative"]);
|
|
3
3
|
const MUTATION_LOG_LIMIT = 80;
|
|
4
4
|
|
|
5
|
+
function groupableThinkingText(message) {
|
|
6
|
+
if (message?.role !== "thinking") return null;
|
|
7
|
+
if (typeof message.thinking === "string") return message.thinking;
|
|
8
|
+
return typeof message.content === "string" ? message.content : null;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function groupConsecutiveThinkingMessages(messages) {
|
|
12
|
+
const grouped = [];
|
|
13
|
+
let pending = [];
|
|
14
|
+
|
|
15
|
+
const flush = () => {
|
|
16
|
+
if (pending.length === 1) grouped.push(pending[0]);
|
|
17
|
+
else if (pending.length > 1) {
|
|
18
|
+
const first = pending[0];
|
|
19
|
+
const thinking = pending.map(groupableThinkingText).join("\n\n");
|
|
20
|
+
grouped.push({
|
|
21
|
+
...first,
|
|
22
|
+
content: thinking,
|
|
23
|
+
thinking,
|
|
24
|
+
thinkingSegmentCount: pending.length,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
pending = [];
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
for (const message of messages || []) {
|
|
31
|
+
if (groupableThinkingText(message) !== null) pending.push(message);
|
|
32
|
+
else {
|
|
33
|
+
flush();
|
|
34
|
+
grouped.push(message);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
flush();
|
|
38
|
+
return grouped;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function groupConsecutiveThinkingItems(items, thinkingMessageForItem = (item) => item?.message) {
|
|
42
|
+
const grouped = [];
|
|
43
|
+
let pending = [];
|
|
44
|
+
|
|
45
|
+
const flush = () => {
|
|
46
|
+
if (pending.length === 1) grouped.push(pending[0].item);
|
|
47
|
+
else if (pending.length > 1) {
|
|
48
|
+
const first = pending[0].item;
|
|
49
|
+
const message = groupConsecutiveThinkingMessages(pending.map((entry) => entry.message))[0];
|
|
50
|
+
grouped.push({ ...first, message, thinkingGroupSourceCount: pending.length });
|
|
51
|
+
}
|
|
52
|
+
pending = [];
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
for (const item of items || []) {
|
|
56
|
+
const message = thinkingMessageForItem(item);
|
|
57
|
+
if (groupableThinkingText(message) !== null) pending.push({ item, message });
|
|
58
|
+
else {
|
|
59
|
+
flush();
|
|
60
|
+
grouped.push(item);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
flush();
|
|
64
|
+
return grouped;
|
|
65
|
+
}
|
|
66
|
+
|
|
5
67
|
function normalizedKey(value, fallback = "") {
|
|
6
68
|
const key = String(value || "").trim();
|
|
7
69
|
return key || fallback;
|