@firstpick/pi-package-webui 0.8.2 → 0.8.4

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 (52) hide show
  1. package/README.md +76 -19
  2. package/bin/pi-webui.mjs +864 -140
  3. package/lib/WEBUI_TUI_NATIVE_PARITY.json +26 -0
  4. package/lib/git-workflow-preferences.mjs +246 -19
  5. package/lib/optional-feature-catalog.mjs +29 -0
  6. package/lib/optional-feature-migration.mjs +410 -0
  7. package/lib/session-summary-core.mjs +320 -0
  8. package/lib/session-summary-preferences.mjs +267 -0
  9. package/lib/thinking-stream-recovery.mjs +156 -0
  10. package/lib/ui-layout-settings.mjs +254 -0
  11. package/package.json +5 -40
  12. package/public/app.js +2898 -92
  13. package/public/index.html +77 -14
  14. package/public/service-worker.js +1 -1
  15. package/public/styles.css +669 -2
  16. package/session-summary.ts +403 -0
  17. package/tests/aur-review-widget-static.test.mjs +3 -2
  18. package/tests/boot-failure-diagnostics.test.mjs +3 -3
  19. package/tests/browser/composer-action-grid-reorder.spec.mjs +303 -0
  20. package/tests/browser/feature-decision-output-popup.spec.mjs +156 -0
  21. package/tests/browser/interaction-continuity.spec.mjs +29 -0
  22. package/tests/browser/persistent-ui-layout.spec.mjs +744 -0
  23. package/tests/browser/session-summary.spec.mjs +271 -0
  24. package/tests/codex-fast-mode-static.test.mjs +10 -9
  25. package/tests/composer-action-grid-reorder-static.test.mjs +63 -0
  26. package/tests/fast-mode-client-static.test.mjs +2 -2
  27. package/tests/feature-decision-output-popup-static.test.mjs +172 -0
  28. package/tests/fixtures/fake-pi.mjs +51 -1
  29. package/tests/git-workflow-preferences.test.mjs +4 -2
  30. package/tests/http-endpoints-harness.test.mjs +507 -4
  31. package/tests/interaction-state-stability-static.test.mjs +3 -0
  32. package/tests/mobile-continuity-tablet-static.test.mjs +3 -3
  33. package/tests/mobile-foundation-static.test.mjs +3 -3
  34. package/tests/mobile-phone-experience-static.test.mjs +1 -1
  35. package/tests/mobile-static.test.mjs +118 -103
  36. package/tests/native-parity-harness.test.mjs +9 -1
  37. package/tests/native-parity.test.mjs +23 -1
  38. package/tests/open-issue-wizard-static.test.mjs +1 -1
  39. package/tests/optional-feature-migration-frontend.test.mjs +72 -0
  40. package/tests/optional-feature-migration.test.mjs +142 -0
  41. package/tests/persistent-ui-layout-static.test.mjs +267 -0
  42. package/tests/questionnaire-dialog.test.mjs +511 -0
  43. package/tests/queue-edit-reorder-static.test.mjs +1 -0
  44. package/tests/remote-auth-settings-harness.test.mjs +1 -1
  45. package/tests/session-summary-core.test.mjs +491 -0
  46. package/tests/session-summary-preferences.test.mjs +103 -0
  47. package/tests/side-panel-resize-static.test.mjs +1 -0
  48. package/tests/side-panel-section-reorder-static.test.mjs +3 -3
  49. package/tests/subagent-launch-slots.test.mjs +1 -1
  50. package/tests/thinking-stream-recovery.test.mjs +88 -0
  51. package/tests/ui-layout-settings.test.mjs +92 -0
  52. package/tests/webui-settings-locking.test.mjs +159 -0
package/public/styles.css CHANGED
@@ -2753,7 +2753,7 @@ body.embedded-split .side-panel-backdrop {
2753
2753
  }
2754
2754
  .subagents-status-row {
2755
2755
  display: flex;
2756
- align-items: flex-start;
2756
+ align-items: center;
2757
2757
  gap: 0.48rem;
2758
2758
  margin: 0 0 0.48rem;
2759
2759
  }
@@ -2764,12 +2764,19 @@ body.embedded-split .side-panel-backdrop {
2764
2764
  font-size: var(--text-xs);
2765
2765
  line-height: 1.35;
2766
2766
  }
2767
+ .subagents-auto-clear-button,
2767
2768
  .subagents-clear-finished-button {
2768
2769
  flex: 0 0 auto;
2769
2770
  min-height: 2rem;
2770
2771
  padding: 0.28rem 0.5rem;
2771
2772
  font-size: var(--text-xs);
2772
2773
  }
2774
+ .subagents-auto-clear-button[aria-pressed="true"] {
2775
+ color: var(--ctp-crust);
2776
+ border-color: rgba(148, 226, 213, 0.82);
2777
+ background: linear-gradient(120deg, var(--ctp-teal), var(--ctp-green));
2778
+ box-shadow: 0 0 0.8rem rgba(148, 226, 213, 0.18), inset 0 1px 0 rgba(255,255,255,0.28);
2779
+ }
2773
2780
  .subagents-box {
2774
2781
  display: grid;
2775
2782
  gap: 0.58rem;
@@ -3133,6 +3140,233 @@ button.subagent-gate-attempt:focus-visible {
3133
3140
  50% { opacity: 1; transform: scale(1); }
3134
3141
  }
3135
3142
 
3143
+ .optional-feature-migration-surface {
3144
+ position: fixed;
3145
+ top: max(0.65rem, env(safe-area-inset-top));
3146
+ left: 50%;
3147
+ z-index: 190;
3148
+ width: min(46rem, calc(100vw - 2rem));
3149
+ transform: translateX(-50%);
3150
+ pointer-events: none;
3151
+ }
3152
+ .optional-feature-migration-card {
3153
+ display: grid;
3154
+ grid-template-columns: minmax(0, 1fr) auto;
3155
+ gap: 0.65rem;
3156
+ align-items: center;
3157
+ max-height: min(48vh, 24rem);
3158
+ overflow: auto;
3159
+ padding: 0.7rem 0.78rem;
3160
+ border: 1px solid rgba(180, 190, 254, 0.28);
3161
+ border-radius: 0.86rem;
3162
+ color: var(--ctp-text);
3163
+ background: linear-gradient(145deg, rgba(var(--ctp-base-rgb), 0.97), rgba(var(--ctp-crust-rgb), 0.97));
3164
+ box-shadow: 0 1rem 2.4rem rgba(var(--ctp-crust-rgb), 0.62), 0 0 1.2rem rgba(137, 180, 250, 0.12);
3165
+ pointer-events: auto;
3166
+ }
3167
+ .optional-feature-migration-card.phase-action-required,
3168
+ .optional-feature-migration-card.phase-degraded,
3169
+ .optional-feature-migration-card.phase-partial {
3170
+ border-color: rgba(249, 226, 175, 0.48);
3171
+ }
3172
+ .optional-feature-migration-card.phase-complete {
3173
+ border-color: rgba(166, 227, 161, 0.46);
3174
+ }
3175
+ .optional-feature-migration-card:focus-visible {
3176
+ outline: 3px solid rgba(148, 226, 213, 0.5);
3177
+ outline-offset: 3px;
3178
+ }
3179
+ .optional-feature-migration-copy {
3180
+ display: grid;
3181
+ gap: 0.2rem;
3182
+ min-width: 0;
3183
+ }
3184
+ .optional-feature-migration-title {
3185
+ color: rgba(var(--ctp-text-rgb), 0.96);
3186
+ font-size: 0.84rem;
3187
+ }
3188
+ .optional-feature-migration-detail {
3189
+ color: rgba(var(--ctp-subtext-rgb), 0.82);
3190
+ font-size: var(--text-xs);
3191
+ line-height: 1.4;
3192
+ }
3193
+ .optional-feature-migration-actions,
3194
+ .optional-feature-batch-actions {
3195
+ display: flex;
3196
+ flex-wrap: wrap;
3197
+ gap: 0.42rem;
3198
+ justify-content: flex-end;
3199
+ }
3200
+ .optional-feature-migration-actions button,
3201
+ .optional-feature-restart-notice button {
3202
+ min-height: 2rem;
3203
+ padding: 0.3rem 0.58rem;
3204
+ font-size: var(--text-xs);
3205
+ font-weight: 850;
3206
+ }
3207
+ .optional-feature-migration-output {
3208
+ grid-column: 1 / -1;
3209
+ max-height: 7rem;
3210
+ overflow: auto;
3211
+ margin: 0;
3212
+ padding: 0.5rem;
3213
+ border: 1px solid rgba(243, 139, 168, 0.24);
3214
+ border-radius: 0.58rem;
3215
+ background: rgba(var(--ctp-crust-rgb), 0.62);
3216
+ font-size: var(--text-xs);
3217
+ line-height: 1.35;
3218
+ white-space: pre-wrap;
3219
+ }
3220
+ .optional-feature-restart-notice {
3221
+ grid-column: 1 / -1;
3222
+ display: flex;
3223
+ flex-wrap: wrap;
3224
+ gap: 0.45rem;
3225
+ align-items: center;
3226
+ justify-content: flex-end;
3227
+ padding-top: 0.5rem;
3228
+ border-top: 1px solid rgba(166, 227, 161, 0.22);
3229
+ color: var(--ctp-green);
3230
+ font-size: var(--text-xs);
3231
+ font-weight: 800;
3232
+ }
3233
+ .optional-feature-restart-notice span { margin-right: auto; }
3234
+ .optional-feature-migration-dialog {
3235
+ width: min(44rem, calc(100vw - 2rem));
3236
+ max-height: min(86vh, 46rem);
3237
+ overflow: auto;
3238
+ padding: 0;
3239
+ border: 1px solid rgba(180, 190, 254, 0.34);
3240
+ border-radius: 1rem;
3241
+ color: var(--ctp-text);
3242
+ background: linear-gradient(145deg, rgba(var(--ctp-base-rgb), 0.99), rgba(var(--ctp-crust-rgb), 0.99));
3243
+ box-shadow: 0 1.5rem 4rem rgba(var(--ctp-crust-rgb), 0.72);
3244
+ }
3245
+ .optional-feature-migration-dialog::backdrop {
3246
+ background: rgba(var(--ctp-crust-rgb), 0.76);
3247
+ backdrop-filter: blur(4px);
3248
+ }
3249
+ .optional-feature-migration-dialog-content {
3250
+ display: grid;
3251
+ gap: 0.75rem;
3252
+ padding: clamp(1rem, 3vw, 1.4rem);
3253
+ }
3254
+ .optional-feature-migration-dialog h2,
3255
+ .optional-feature-migration-dialog p,
3256
+ .optional-feature-migration-dialog menu { margin: 0; }
3257
+ .optional-feature-migration-dialog-summary {
3258
+ padding: 0.62rem;
3259
+ border: 1px solid rgba(148, 226, 213, 0.24);
3260
+ border-radius: 0.68rem;
3261
+ color: rgba(var(--ctp-text-rgb), 0.9);
3262
+ background: rgba(148, 226, 213, 0.07);
3263
+ font-size: 0.82rem;
3264
+ line-height: 1.45;
3265
+ }
3266
+ .optional-feature-migration-choose {
3267
+ border: 1px solid rgba(180, 190, 254, 0.18);
3268
+ border-radius: 0.72rem;
3269
+ background: rgba(var(--ctp-surface-rgb), 0.22);
3270
+ }
3271
+ .optional-feature-migration-choose > summary {
3272
+ padding: 0.68rem;
3273
+ cursor: pointer;
3274
+ color: var(--ctp-lavender);
3275
+ font-weight: 850;
3276
+ }
3277
+ .optional-feature-migration-choices {
3278
+ display: grid;
3279
+ gap: 0.5rem;
3280
+ padding: 0 0.68rem 0.68rem;
3281
+ }
3282
+ .optional-feature-migration-choice {
3283
+ display: grid;
3284
+ gap: 0.38rem;
3285
+ padding: 0.58rem;
3286
+ border: 1px solid rgba(180, 190, 254, 0.14);
3287
+ border-radius: 0.62rem;
3288
+ background: rgba(var(--ctp-crust-rgb), 0.46);
3289
+ }
3290
+ .optional-feature-migration-choice-label {
3291
+ display: grid;
3292
+ grid-template-columns: auto minmax(0, 1fr);
3293
+ gap: 0.55rem;
3294
+ align-items: start;
3295
+ cursor: pointer;
3296
+ }
3297
+ .optional-feature-migration-choice-label input {
3298
+ width: 1.1rem;
3299
+ min-height: 1.1rem;
3300
+ margin-top: 0.12rem;
3301
+ accent-color: var(--ctp-mauve);
3302
+ }
3303
+ .optional-feature-migration-choice-label span {
3304
+ display: grid;
3305
+ gap: 0.16rem;
3306
+ min-width: 0;
3307
+ }
3308
+ .optional-feature-migration-choice-package,
3309
+ .optional-feature-migration-choice-details {
3310
+ color: rgba(var(--ctp-subtext-rgb), 0.76);
3311
+ font-size: var(--text-xs);
3312
+ line-height: 1.4;
3313
+ overflow-wrap: anywhere;
3314
+ }
3315
+ .optional-feature-migration-choice-details > summary {
3316
+ width: fit-content;
3317
+ cursor: pointer;
3318
+ color: var(--ctp-blue);
3319
+ font-weight: 800;
3320
+ }
3321
+ .optional-feature-migration-choice-details > span { display: block; padding-top: 0.3rem; }
3322
+ .optional-feature-migration-dialog-error {
3323
+ color: var(--ctp-red);
3324
+ font-size: 0.82rem;
3325
+ font-weight: 800;
3326
+ }
3327
+ .optional-feature-migration-dialog menu {
3328
+ display: flex;
3329
+ flex-wrap: wrap;
3330
+ gap: 0.55rem;
3331
+ justify-content: flex-end;
3332
+ padding: 0;
3333
+ }
3334
+
3335
+ .optional-feature-batch-toolbar {
3336
+ display: flex;
3337
+ flex-wrap: wrap;
3338
+ justify-content: space-between;
3339
+ gap: 0.48rem;
3340
+ align-items: center;
3341
+ padding: 0.58rem;
3342
+ border: 1px solid rgba(148, 226, 213, 0.18);
3343
+ border-radius: 0.72rem;
3344
+ background: rgba(var(--ctp-surface-rgb), 0.28);
3345
+ }
3346
+ .optional-feature-batch-status {
3347
+ min-width: 0;
3348
+ color: rgba(var(--ctp-subtext-rgb), 0.78);
3349
+ font-size: var(--text-xs);
3350
+ font-weight: 750;
3351
+ line-height: 1.35;
3352
+ }
3353
+ .optional-feature-batch-status.warning { color: var(--ctp-yellow); }
3354
+ .optional-feature-batch-action,
3355
+ .optional-feature-section-install {
3356
+ min-height: 2rem;
3357
+ padding: 0.3rem 0.54rem;
3358
+ color: var(--ctp-teal);
3359
+ border-color: rgba(148, 226, 213, 0.30);
3360
+ font-size: var(--text-xs);
3361
+ font-weight: 850;
3362
+ white-space: nowrap;
3363
+ }
3364
+ .optional-feature-batch-action:not(:disabled):hover,
3365
+ .optional-feature-section-install:not(:disabled):hover {
3366
+ color: #11111b;
3367
+ border-color: transparent;
3368
+ background: linear-gradient(120deg, var(--ctp-teal), var(--ctp-sky));
3369
+ }
3136
3370
  .optional-feature-section {
3137
3371
  display: grid;
3138
3372
  gap: 0.48rem;
@@ -3148,6 +3382,12 @@ button.subagent-gate-attempt:focus-visible {
3148
3382
  gap: 0.55rem;
3149
3383
  align-items: center;
3150
3384
  }
3385
+ .optional-feature-section-actions {
3386
+ display: flex;
3387
+ flex: 0 0 auto;
3388
+ gap: 0.38rem;
3389
+ align-items: center;
3390
+ }
3151
3391
  .optional-feature-section-title {
3152
3392
  min-width: 0;
3153
3393
  color: rgba(var(--ctp-text-rgb), 0.92);
@@ -3561,6 +3801,35 @@ button.subagent-gate-attempt:focus-visible {
3561
3801
  border-color: transparent;
3562
3802
  background: linear-gradient(120deg, var(--ctp-yellow), var(--ctp-peach));
3563
3803
  }
3804
+ @media (max-width: 34rem) {
3805
+ .optional-feature-migration-surface {
3806
+ top: max(0.35rem, env(safe-area-inset-top));
3807
+ width: calc(100vw - 0.7rem);
3808
+ }
3809
+ .optional-feature-migration-card {
3810
+ grid-template-columns: 1fr;
3811
+ max-height: min(52vh, 25rem);
3812
+ }
3813
+ .optional-feature-migration-actions,
3814
+ .optional-feature-batch-actions,
3815
+ .optional-feature-migration-dialog menu { justify-content: stretch; }
3816
+ .optional-feature-migration-actions button,
3817
+ .optional-feature-batch-actions button,
3818
+ .optional-feature-migration-dialog menu button { flex: 1 1 8rem; }
3819
+ .optional-feature-batch-toolbar,
3820
+ .optional-feature-section-header {
3821
+ align-items: stretch;
3822
+ flex-direction: column;
3823
+ }
3824
+ .optional-feature-section-actions { justify-content: space-between; }
3825
+ .optional-feature-batch-action,
3826
+ .optional-feature-section-install { width: 100%; }
3827
+ .optional-feature-row { grid-template-columns: 1fr; }
3828
+ .optional-feature-actions {
3829
+ grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
3830
+ justify-items: stretch;
3831
+ }
3832
+ }
3564
3833
 
3565
3834
  .terminal-tabs-shell {
3566
3835
  position: relative;
@@ -4256,7 +4525,7 @@ button.subagent-gate-attempt:focus-visible {
4256
4525
  }
4257
4526
  body.terminal-tabs-left .terminal-sidebar-actions {
4258
4527
  display: grid;
4259
- grid-template-columns: repeat(4, minmax(0, 1fr));
4528
+ grid-template-columns: repeat(5, minmax(0, 1fr));
4260
4529
  gap: 0.42rem;
4261
4530
  width: 100%;
4262
4531
  padding: 0.42rem;
@@ -7873,6 +8142,9 @@ summary { cursor: pointer; color: var(--warning); }
7873
8142
  padding: 0.9rem;
7874
8143
  background: linear-gradient(180deg, rgba(var(--ctp-crust-rgb), 0.48), rgba(var(--ctp-crust-rgb), 0.82));
7875
8144
  }
8145
+ .composer:has(.follow-up-queue-overlay:not([hidden])) {
8146
+ z-index: 80;
8147
+ }
7876
8148
  .composer::before {
7877
8149
  content: "";
7878
8150
  position: absolute;
@@ -8084,6 +8356,7 @@ summary { cursor: pointer; color: var(--warning); }
8084
8356
  }
8085
8357
  .composer-busy-mode-tag,
8086
8358
  .composer-skill-tag,
8359
+ .composer-feature-category-tag,
8087
8360
  .composer-conversation-mode-chip,
8088
8361
  .composer-workflow-mode-chip {
8089
8362
  pointer-events: auto;
@@ -8154,7 +8427,9 @@ summary { cursor: pointer; color: var(--warning); }
8154
8427
  .composer-feature-category-tag {
8155
8428
  flex: 0 1 auto;
8156
8429
  min-width: 0;
8430
+ min-height: 0;
8157
8431
  max-width: min(14rem, 100%);
8432
+ margin: 0;
8158
8433
  padding: 0.14rem 0.56rem;
8159
8434
  border: 1px solid rgba(148, 226, 213, 0.52);
8160
8435
  border-radius: 999px;
@@ -8163,6 +8438,7 @@ summary { cursor: pointer; color: var(--warning); }
8163
8438
  linear-gradient(120deg, rgba(148, 226, 213, 0.28), rgba(166, 227, 161, 0.10)),
8164
8439
  var(--ctp-crust);
8165
8440
  box-shadow: 0 0.42rem 1rem rgba(var(--ctp-crust-rgb), 0.42), 0 0 1rem rgba(148, 226, 213, 0.22);
8441
+ cursor: pointer;
8166
8442
  font-size: var(--text-xs);
8167
8443
  font-weight: 900;
8168
8444
  letter-spacing: 0.04em;
@@ -8171,6 +8447,16 @@ summary { cursor: pointer; color: var(--warning); }
8171
8447
  text-overflow: ellipsis;
8172
8448
  white-space: nowrap;
8173
8449
  }
8450
+ .composer-feature-category-tag:hover:not(:disabled),
8451
+ .composer-feature-category-tag:focus-visible {
8452
+ border-color: rgba(148, 226, 213, 0.78);
8453
+ box-shadow: 0 0.42rem 1rem rgba(var(--ctp-crust-rgb), 0.42), 0 0 1.2rem rgba(148, 226, 213, 0.34);
8454
+ transform: translateY(-1px);
8455
+ }
8456
+ .composer-feature-category-tag:disabled {
8457
+ cursor: default;
8458
+ opacity: 0.72;
8459
+ }
8174
8460
  .composer-feature-category-tag.complex-feature {
8175
8461
  border-color: rgba(203, 166, 247, 0.56);
8176
8462
  color: var(--ctp-mauve);
@@ -8611,6 +8897,83 @@ button.composer-skill-tag:focus-visible {
8611
8897
  }
8612
8898
  .composer-actions-button { display: none; }
8613
8899
  .composer-actions-panel { display: contents; }
8900
+ body.composer-action-grid-enabled .composer-row {
8901
+ --composer-action-cell-min-width: 3.2rem;
8902
+ position: relative;
8903
+ display: grid;
8904
+ grid-template-columns: repeat(auto-fill, minmax(var(--composer-action-cell-min-width), 1fr));
8905
+ grid-auto-flow: dense;
8906
+ align-items: stretch;
8907
+ }
8908
+ body.composer-action-grid-enabled .composer-row .spacer { display: none; }
8909
+ body.composer-action-grid-enabled .composer-row [data-composer-action-id] {
8910
+ position: relative;
8911
+ z-index: 1;
8912
+ --composer-action-grid-span: 1;
8913
+ order: var(--composer-action-order, 0);
8914
+ grid-column: var(--composer-action-grid-column, auto) / span var(--composer-action-grid-span);
8915
+ grid-row-start: var(--composer-action-grid-row, auto);
8916
+ width: 100%;
8917
+ min-width: 0;
8918
+ margin-right: 0;
8919
+ cursor: grab;
8920
+ touch-action: none;
8921
+ user-select: none;
8922
+ }
8923
+ body.composer-action-grid-enabled .composer-row [data-composer-action-id].composer-publish-menu:hover,
8924
+ body.composer-action-grid-enabled .composer-row [data-composer-action-id].composer-publish-menu:focus-within,
8925
+ body.composer-action-grid-enabled .composer-row [data-composer-action-id].composer-publish-menu.open {
8926
+ z-index: 100;
8927
+ }
8928
+ body.composer-action-grid-enabled .composer-row [data-composer-action-span="2"] { --composer-action-grid-span: 2; }
8929
+ body.composer-action-grid-enabled .composer-row [data-composer-action-id] > button { width: 100%; min-width: 0; }
8930
+ body.composer-action-grid-enabled .composer-row #newSessionButton {
8931
+ display: grid;
8932
+ place-items: center;
8933
+ padding-inline: 0.4rem;
8934
+ text-align: center;
8935
+ }
8936
+ .composer-action-grid-guide { display: none; }
8937
+ body.composer-action-grid-enabled.composer-action-drag-active .composer-row > .composer-action-grid-guide:not([hidden]) {
8938
+ position: absolute;
8939
+ z-index: 0;
8940
+ inset: 0;
8941
+ display: grid;
8942
+ grid-template-columns: repeat(auto-fill, minmax(var(--composer-action-cell-min-width), 1fr));
8943
+ grid-template-rows: repeat(var(--composer-action-grid-rows, 1), minmax(0, 1fr));
8944
+ gap: 0.5rem;
8945
+ pointer-events: none;
8946
+ }
8947
+ .composer-action-grid-cell {
8948
+ min-width: 0;
8949
+ min-height: 0;
8950
+ border: 1px dashed rgba(137, 180, 250, 0.5);
8951
+ border-radius: 0.7rem;
8952
+ background: rgba(137, 180, 250, 0.07);
8953
+ box-shadow: inset 0 0 0.7rem rgba(137, 180, 250, 0.05);
8954
+ }
8955
+ .composer-action-grid-cell.composer-action-grid-cell-target {
8956
+ border-style: solid;
8957
+ border-color: var(--ctp-teal);
8958
+ background: rgba(148, 226, 213, 0.18);
8959
+ box-shadow: inset 0 0 0.9rem rgba(148, 226, 213, 0.16), 0 0 0.65rem rgba(148, 226, 213, 0.3);
8960
+ }
8961
+ body.composer-action-grid-enabled .composer-row [data-composer-action-id].composer-action-dragging {
8962
+ z-index: 45;
8963
+ opacity: 0.58;
8964
+ cursor: grabbing;
8965
+ transform: scale(0.97);
8966
+ }
8967
+ body.composer-action-grid-enabled .composer-row [data-composer-action-id].composer-action-drag-before {
8968
+ outline: 2px solid var(--ctp-teal);
8969
+ outline-offset: 2px;
8970
+ box-shadow: -0.34rem 0 0 -0.16rem var(--ctp-teal);
8971
+ }
8972
+ body.composer-action-grid-enabled .composer-row [data-composer-action-id].composer-action-drag-after {
8973
+ outline: 2px solid var(--ctp-mauve);
8974
+ outline-offset: 2px;
8975
+ box-shadow: 0.34rem 0 0 -0.16rem var(--ctp-mauve);
8976
+ }
8614
8977
  .composer-btw-button {
8615
8978
  color: var(--ctp-teal);
8616
8979
  border-color: rgba(148, 226, 213, 0.34);
@@ -9958,6 +10321,23 @@ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-
9958
10321
  color: var(--text);
9959
10322
  box-shadow: 0 2rem 5rem var(--shadow), 0 0 2rem var(--glow-mauve);
9960
10323
  }
10324
+ .extension-dialog.feature-decision-dialog {
10325
+ width: min(30rem, calc(100vw - 2rem));
10326
+ }
10327
+ .feature-decision-dialog h2 { margin: 0; }
10328
+ .feature-decision-dialog-output {
10329
+ margin: 0.9rem 0 0;
10330
+ padding: 0.85rem;
10331
+ border: 1px solid rgba(148, 226, 213, 0.34);
10332
+ border-radius: 0.72rem;
10333
+ color: var(--ctp-teal);
10334
+ background: rgba(var(--ctp-crust-rgb), 0.82);
10335
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
10336
+ font-size: 0.95rem;
10337
+ line-height: 1.4;
10338
+ overflow-wrap: anywhere;
10339
+ white-space: pre-wrap;
10340
+ }
9961
10341
  .extension-dialog.workflow-script-dialog {
9962
10342
  width: min(96rem, calc(100vw - 2rem));
9963
10343
  height: min(58rem, calc(var(--visual-viewport-height, 100dvh) - 2rem));
@@ -11513,6 +11893,175 @@ body.subagent-terminal-active .composer-remote-mic-consent {
11513
11893
  .dialog-options button { text-align: left; }
11514
11894
  .dialog-input { width: 100%; padding: 0.7rem; }
11515
11895
  .dialog-editor { width: 100%; min-height: 12rem; padding: 0.7rem; }
11896
+
11897
+ .extension-dialog.questionnaire-dialog {
11898
+ width: min(48rem, calc(100vw - 2rem));
11899
+ max-height: min(52rem, calc(var(--visual-viewport-height, 100dvh) - 2rem));
11900
+ overflow: hidden;
11901
+ border-color: rgba(137, 180, 250, 0.5);
11902
+ background:
11903
+ radial-gradient(circle at 100% 0, rgba(137, 180, 250, 0.13), transparent 24rem),
11904
+ linear-gradient(145deg, rgba(var(--ctp-base-rgb), 0.99), rgba(var(--ctp-crust-rgb), 0.99));
11905
+ box-shadow: 0 2rem 5rem var(--shadow), 0 0 2.2rem rgba(137, 180, 250, 0.2);
11906
+ }
11907
+ .questionnaire-dialog form {
11908
+ display: grid;
11909
+ grid-template-rows: auto auto minmax(0, 1fr) auto;
11910
+ max-height: calc(min(52rem, var(--visual-viewport-height, 100dvh)) - 4rem);
11911
+ min-height: 0;
11912
+ }
11913
+ .questionnaire-dialog #dialogTitle {
11914
+ margin-bottom: 0;
11915
+ color: var(--ctp-blue);
11916
+ font-size: clamp(1.15rem, 3vw, 1.45rem);
11917
+ line-height: 1.25;
11918
+ text-shadow: 0 0 1rem rgba(137, 180, 250, 0.24);
11919
+ }
11920
+ .questionnaire-dialog #dialogMessage {
11921
+ margin: 0.72rem 0 0.9rem;
11922
+ padding: 0.72rem 0.82rem;
11923
+ border: 1px solid rgba(180, 190, 254, 0.18);
11924
+ border-radius: 0.78rem;
11925
+ color: rgba(var(--ctp-text-rgb), 0.84);
11926
+ background: rgba(var(--ctp-crust-rgb), 0.46);
11927
+ font-size: var(--text-sm);
11928
+ }
11929
+ .questionnaire-dialog #dialogBody {
11930
+ min-height: 0;
11931
+ overflow-y: auto;
11932
+ overscroll-behavior: contain;
11933
+ scrollbar-gutter: stable;
11934
+ padding: 0.1rem 0.18rem 0.15rem 0;
11935
+ }
11936
+ .questionnaire-options { gap: 0.58rem; }
11937
+ .questionnaire-options button {
11938
+ width: 100%;
11939
+ min-height: 3.65rem;
11940
+ margin: 0;
11941
+ white-space: normal;
11942
+ }
11943
+ .questionnaire-option {
11944
+ display: grid;
11945
+ align-items: center;
11946
+ gap: 0.68rem;
11947
+ padding: 0.68rem 0.76rem;
11948
+ overflow: hidden;
11949
+ border-color: rgba(137, 180, 250, 0.3);
11950
+ background:
11951
+ linear-gradient(105deg, rgba(137, 180, 250, 0.09), transparent 42%),
11952
+ linear-gradient(180deg, rgba(var(--ctp-surface-rgb), 0.72), rgba(var(--ctp-mantle-rgb), 0.82));
11953
+ text-align: left;
11954
+ }
11955
+ .questionnaire-option-single { grid-template-columns: 2.55rem minmax(0, 1fr); }
11956
+ .questionnaire-option-multi { grid-template-columns: 2.55rem 2rem minmax(0, 1fr); }
11957
+ .questionnaire-option-number {
11958
+ display: inline-grid;
11959
+ place-items: center;
11960
+ align-self: stretch;
11961
+ min-height: 2.05rem;
11962
+ border-right: 1px solid rgba(137, 180, 250, 0.24);
11963
+ color: var(--ctp-blue);
11964
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
11965
+ font-size: var(--text-sm);
11966
+ font-variant-numeric: tabular-nums;
11967
+ font-weight: 900;
11968
+ letter-spacing: 0.04em;
11969
+ }
11970
+ .questionnaire-option-state {
11971
+ display: inline-grid;
11972
+ place-items: center;
11973
+ width: 1.7rem;
11974
+ height: 1.7rem;
11975
+ border: 2px solid rgba(180, 190, 254, 0.56);
11976
+ border-radius: 0.46rem;
11977
+ color: var(--ctp-crust);
11978
+ background: rgba(var(--ctp-crust-rgb), 0.5);
11979
+ font-size: 1rem;
11980
+ font-weight: 950;
11981
+ line-height: 1;
11982
+ }
11983
+ .questionnaire-option-text {
11984
+ display: grid;
11985
+ gap: 0.2rem;
11986
+ min-width: 0;
11987
+ }
11988
+ .questionnaire-option-label {
11989
+ color: var(--ctp-text);
11990
+ font-weight: 800;
11991
+ line-height: 1.35;
11992
+ overflow-wrap: anywhere;
11993
+ }
11994
+ .questionnaire-option-description {
11995
+ color: rgba(var(--ctp-subtext-rgb), 0.8);
11996
+ font-size: var(--text-sm);
11997
+ font-weight: 550;
11998
+ line-height: 1.35;
11999
+ overflow-wrap: anywhere;
12000
+ }
12001
+ .questionnaire-option-multi.is-selected {
12002
+ border-color: rgba(166, 227, 161, 0.7);
12003
+ background:
12004
+ linear-gradient(105deg, rgba(166, 227, 161, 0.18), rgba(148, 226, 213, 0.07) 48%, transparent),
12005
+ linear-gradient(180deg, rgba(var(--ctp-surface-rgb), 0.8), rgba(var(--ctp-mantle-rgb), 0.82));
12006
+ box-shadow: inset 0.22rem 0 0 var(--ctp-green), 0 0 1.1rem rgba(166, 227, 161, 0.13);
12007
+ }
12008
+ .questionnaire-option-multi.is-selected .questionnaire-option-number { color: var(--ctp-green); }
12009
+ .questionnaire-option-multi.is-selected .questionnaire-option-state {
12010
+ border-color: var(--ctp-green);
12011
+ background: linear-gradient(135deg, var(--ctp-green), var(--ctp-teal));
12012
+ box-shadow: 0 0 0.75rem rgba(166, 227, 161, 0.25);
12013
+ }
12014
+ .questionnaire-option:hover,
12015
+ .questionnaire-option:focus-visible {
12016
+ border-color: rgba(148, 226, 213, 0.75);
12017
+ box-shadow: 0 0 0 3px rgba(148, 226, 213, 0.14), 0 0 1rem rgba(148, 226, 213, 0.16);
12018
+ }
12019
+ .questionnaire-action {
12020
+ min-height: 3rem !important;
12021
+ padding: 0.62rem 0.78rem;
12022
+ font-size: var(--text-sm);
12023
+ font-weight: 800;
12024
+ line-height: 1.3;
12025
+ }
12026
+ .questionnaire-option + .questionnaire-action { margin-top: 0.42rem; }
12027
+ .questionnaire-action-other {
12028
+ color: var(--ctp-blue);
12029
+ border-color: rgba(137, 180, 250, 0.42);
12030
+ background: linear-gradient(120deg, rgba(137, 180, 250, 0.13), rgba(var(--ctp-crust-rgb), 0.66));
12031
+ }
12032
+ .questionnaire-action-clarify {
12033
+ color: var(--ctp-mauve);
12034
+ border-color: rgba(203, 166, 247, 0.4);
12035
+ background: linear-gradient(120deg, rgba(203, 166, 247, 0.12), rgba(var(--ctp-crust-rgb), 0.66));
12036
+ }
12037
+ .questionnaire-action-remove-other {
12038
+ color: var(--ctp-peach);
12039
+ border-color: rgba(250, 179, 135, 0.4);
12040
+ background: linear-gradient(120deg, rgba(250, 179, 135, 0.1), rgba(var(--ctp-crust-rgb), 0.68));
12041
+ }
12042
+ .questionnaire-action-continue {
12043
+ min-height: 3.35rem !important;
12044
+ text-align: center !important;
12045
+ }
12046
+ .questionnaire-action-cancel,
12047
+ .questionnaire-dialog-cancel {
12048
+ color: var(--ctp-red);
12049
+ border-color: rgba(243, 139, 168, 0.42);
12050
+ background: linear-gradient(120deg, rgba(243, 139, 168, 0.08), rgba(var(--ctp-crust-rgb), 0.74));
12051
+ box-shadow: none;
12052
+ }
12053
+ .questionnaire-action:focus-visible,
12054
+ .questionnaire-dialog-cancel:focus-visible {
12055
+ outline: 3px solid rgba(148, 226, 213, 0.7);
12056
+ outline-offset: 2px;
12057
+ border-color: var(--ctp-teal);
12058
+ }
12059
+ .questionnaire-dialog #dialogActions {
12060
+ margin-top: 0.78rem;
12061
+ padding-top: 0.68rem;
12062
+ border-top: 1px solid rgba(180, 190, 254, 0.14);
12063
+ }
12064
+
11516
12065
  .git-pr-dialog {
11517
12066
  width: min(64rem, calc(100vw - 1.5rem));
11518
12067
  }
@@ -12371,6 +12920,7 @@ body.subagent-terminal-active .composer-remote-mic-consent {
12371
12920
  .subagents-status {
12372
12921
  line-height: 1.3;
12373
12922
  }
12923
+ .subagents-auto-clear-button,
12374
12924
  .subagents-clear-finished-button {
12375
12925
  min-height: 1.9rem;
12376
12926
  padding: 0.24rem 0.42rem;
@@ -13412,6 +13962,41 @@ button.git-workflow-step { min-height: 1.9rem; }
13412
13962
  overflow: auto;
13413
13963
  border-radius: 1rem 1rem 0 0;
13414
13964
  }
13965
+ .extension-dialog.questionnaire-dialog {
13966
+ width: 100vw;
13967
+ max-height: calc(var(--visual-viewport-height, 100dvh) - 0.5rem - env(safe-area-inset-top));
13968
+ overflow: hidden;
13969
+ }
13970
+ .questionnaire-dialog form {
13971
+ max-height: calc(var(--visual-viewport-height, 100dvh) - 2.5rem - env(safe-area-inset-top));
13972
+ }
13973
+ .questionnaire-dialog #dialogTitle { font-size: 1.16rem; }
13974
+ .questionnaire-dialog #dialogMessage {
13975
+ margin: 0.55rem 0 0.68rem;
13976
+ padding: 0.58rem 0.64rem;
13977
+ }
13978
+ .questionnaire-dialog #dialogBody { padding-right: 0; }
13979
+ .questionnaire-options { gap: 0.48rem; }
13980
+ .questionnaire-options button { min-height: 3.35rem; }
13981
+ .questionnaire-option {
13982
+ gap: 0.5rem;
13983
+ padding: 0.58rem 0.56rem;
13984
+ }
13985
+ .questionnaire-option-single { grid-template-columns: 2.15rem minmax(0, 1fr); }
13986
+ .questionnaire-option-multi { grid-template-columns: 2.15rem 1.8rem minmax(0, 1fr); }
13987
+ .questionnaire-option-state {
13988
+ width: 1.55rem;
13989
+ height: 1.55rem;
13990
+ }
13991
+ .questionnaire-option-description { font-size: var(--text-xs); }
13992
+ .questionnaire-dialog #dialogActions {
13993
+ position: static;
13994
+ display: grid;
13995
+ grid-template-columns: minmax(0, 1fr);
13996
+ padding-bottom: calc(0.15rem + env(safe-area-inset-bottom));
13997
+ background: transparent;
13998
+ }
13999
+ .questionnaire-dialog #dialogActions button { width: 100%; }
13415
14000
  .extension-dialog.stats-overlay-dialog {
13416
14001
  inset: calc(0.5rem + env(safe-area-inset-top)) 0 0 0;
13417
14002
  width: 100vw;
@@ -16183,3 +16768,85 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
16183
16768
  .issue-wizard-actions #issueWizardCopyButton { margin-left: 0; }
16184
16769
  .issue-wizard-actions #issueWizardBotButton { grid-column: 1 / -1; }
16185
16770
  }
16771
+
16772
+ /* Native Pi session-summary controls and non-blocking Markdown panel. */
16773
+ .terminal-summary-button {
16774
+ position: relative;
16775
+ flex: 0 0 auto;
16776
+ display: inline-grid;
16777
+ place-items: center;
16778
+ width: 34px;
16779
+ height: 30px;
16780
+ padding: 0;
16781
+ border: 1px solid rgba(203, 166, 247, 0.28);
16782
+ border-radius: 0.62rem;
16783
+ color: var(--ctp-mauve);
16784
+ background: linear-gradient(120deg, rgba(203, 166, 247, 0.13), rgba(137, 180, 250, 0.08)), rgba(var(--ctp-crust-rgb), 0.58);
16785
+ }
16786
+ .terminal-summary-button:hover:not(:disabled),
16787
+ .terminal-summary-button:focus-visible {
16788
+ color: #11111b;
16789
+ border-color: transparent;
16790
+ background: linear-gradient(120deg, var(--ctp-mauve), var(--ctp-blue));
16791
+ }
16792
+ .terminal-summary-button svg { width: 1.08rem; height: 1.08rem; }
16793
+ .terminal-summary-button[aria-busy="true"] svg { animation: terminal-summary-pulse 1.1s ease-in-out infinite alternate; }
16794
+ @keyframes terminal-summary-pulse { to { opacity: 0.38; transform: scale(0.9); } }
16795
+ .native-settings-textarea-field { min-width: 0; }
16796
+ .native-settings-textarea {
16797
+ box-sizing: border-box;
16798
+ width: 100%;
16799
+ min-height: 6rem;
16800
+ resize: vertical;
16801
+ line-height: 1.45;
16802
+ }
16803
+ .session-summary-overlay {
16804
+ position: fixed;
16805
+ z-index: 146;
16806
+ top: clamp(4.5rem, 10vh, 7.5rem);
16807
+ right: clamp(0.75rem, 3vw, 2.5rem);
16808
+ display: grid;
16809
+ grid-template-rows: auto auto minmax(0, 1fr) auto;
16810
+ width: min(42rem, calc(100vw - 1.5rem));
16811
+ max-height: min(44rem, calc(var(--visual-viewport-height, 100dvh) - 6rem));
16812
+ overflow: hidden;
16813
+ border: 1px solid rgba(203, 166, 247, 0.42);
16814
+ border-radius: 1rem;
16815
+ background: linear-gradient(145deg, rgba(var(--ctp-mantle-rgb), 0.99), rgba(var(--ctp-crust-rgb), 0.98));
16816
+ box-shadow: 0 1.4rem 4rem rgba(var(--ctp-crust-rgb), 0.58), 0 0 1.6rem rgba(203, 166, 247, 0.16);
16817
+ }
16818
+ .session-summary-overlay[hidden] { display: none; }
16819
+ .session-summary-overlay-header,
16820
+ .session-summary-overlay-actions {
16821
+ display: flex;
16822
+ align-items: center;
16823
+ gap: 0.65rem;
16824
+ padding: 0.75rem 0.9rem;
16825
+ }
16826
+ .session-summary-overlay-header {
16827
+ border-bottom: 1px solid rgba(203, 166, 247, 0.16);
16828
+ background: rgba(203, 166, 247, 0.05);
16829
+ }
16830
+ .session-summary-overlay-heading { flex: 1 1 auto; min-width: 0; }
16831
+ .session-summary-overlay-heading h2 { margin: 0; overflow: hidden; color: var(--ctp-mauve); font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
16832
+ .session-summary-overlay-meta { margin: 0.18rem 0 0; overflow: hidden; color: var(--ctp-subtext0); font-size: var(--text-xs); text-overflow: ellipsis; white-space: nowrap; }
16833
+ .session-summary-overlay-status { margin: 0; padding: 0.55rem 0.9rem; color: var(--ctp-subtext1); background: rgba(var(--ctp-surface-rgb), 0.22); font-size: var(--text-xs); line-height: 1.4; }
16834
+ .session-summary-overlay-status.error { color: var(--ctp-red); background: rgba(243, 139, 168, 0.08); }
16835
+ .session-summary-overlay-body { min-height: 9rem; overflow: auto; padding: 0.9rem 1rem 1.25rem; color: var(--ctp-text); line-height: 1.55; }
16836
+ .session-summary-overlay-body > :first-child { margin-top: 0; }
16837
+ .session-summary-overlay-body > :last-child { margin-bottom: 0; }
16838
+ .session-summary-overlay-actions { justify-content: flex-end; border-top: 1px solid rgba(203, 166, 247, 0.16); }
16839
+ .session-summary-overlay-actions button { min-width: 5.5rem; }
16840
+
16841
+ @media (max-width: 720px), (max-device-width: 720px), (pointer: coarse) and (hover: none) {
16842
+ .terminal-summary-button { width: 32px; min-height: 28px; border-radius: 0.58rem; }
16843
+ .session-summary-overlay {
16844
+ inset: auto 0 0;
16845
+ width: 100vw;
16846
+ max-height: min(76dvh, calc(var(--visual-viewport-height, 100dvh) - env(safe-area-inset-top) - 0.5rem));
16847
+ border-radius: 1rem 1rem 0 0;
16848
+ }
16849
+ .session-summary-overlay-body { min-height: 8rem; }
16850
+ .session-summary-overlay-actions { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
16851
+ .session-summary-overlay-actions button { flex: 1 1 0; min-width: 0; }
16852
+ }