@firstpick/pi-package-webui 0.7.6 → 0.7.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.
Files changed (48) hide show
  1. package/README.md +60 -4
  2. package/bin/pi-webui-rpc-supervisor.mjs +612 -0
  3. package/bin/pi-webui.mjs +1051 -95
  4. package/lib/WEBUI_TUI_NATIVE_PARITY.json +13 -0
  5. package/lib/rpc-supervisor-client.mjs +317 -0
  6. package/lib/rpc-supervisor-protocol.mjs +245 -0
  7. package/lib/rpc-supervisor-state.mjs +165 -0
  8. package/lib/trust-boundaries.mjs +1 -0
  9. package/package.json +4 -4
  10. package/public/app.js +1986 -170
  11. package/public/index.html +388 -25
  12. package/public/issue-bot-client.mjs +344 -0
  13. package/public/issue-wizard-state.mjs +443 -0
  14. package/public/service-worker.js +8 -1
  15. package/public/styles.css +578 -52
  16. package/public/subagent-gate-visibility.mjs +36 -0
  17. package/public/workflow-status-stack.mjs +69 -0
  18. package/tests/app-runner-process-tree-harness.test.mjs +37 -3
  19. package/tests/boot-failure-diagnostics.test.mjs +180 -0
  20. package/tests/completion-signal-contract.test.mjs +156 -0
  21. package/tests/cwd-footer-reliability-static.test.mjs +107 -0
  22. package/tests/durable-rpc-supervisor-harness.test.mjs +275 -0
  23. package/tests/fast-mode-client-static.test.mjs +2 -2
  24. package/tests/fixtures/fake-pi.mjs +90 -6
  25. package/tests/footer-context-contrast-static.test.mjs +10 -0
  26. package/tests/git-panel-file-preview-static.test.mjs +221 -0
  27. package/tests/git-panel-render-stability-static.test.mjs +11 -1
  28. package/tests/http-endpoints-harness.test.mjs +458 -33
  29. package/tests/issue-bot-client.test.mjs +135 -0
  30. package/tests/issue-wizard-state.test.mjs +126 -0
  31. package/tests/mobile-static.test.mjs +79 -16
  32. package/tests/native-parity-harness.test.mjs +2 -1
  33. package/tests/native-parity.test.mjs +13 -2
  34. package/tests/numpad-decimal-input-static.test.mjs +128 -0
  35. package/tests/open-issue-wizard-static.test.mjs +75 -0
  36. package/tests/prompt-routing-input-clear-static.test.mjs +34 -0
  37. package/tests/prompt-routing-tab-status.test.mjs +108 -0
  38. package/tests/rpc-supervisor-host.test.mjs +408 -0
  39. package/tests/rpc-supervisor-protocol.test.mjs +93 -0
  40. package/tests/rpc-supervisor-state.test.mjs +62 -0
  41. package/tests/run-all.mjs +4 -1
  42. package/tests/streaming-ui-coupling.test.mjs +18 -2
  43. package/tests/subagent-gate-visibility.test.mjs +66 -0
  44. package/tests/subagent-launch-slots-static.test.mjs +1 -1
  45. package/tests/subagents-helper.test.mjs +136 -0
  46. package/tests/terminal-tab-workspace-static.test.mjs +99 -0
  47. package/tests/workflow-status-stack.test.mjs +87 -0
  48. package/webui-rpc-helper.mjs +160 -2
package/public/styles.css CHANGED
@@ -928,7 +928,8 @@ body.side-panel-resizing * {
928
928
  padding: 0.58rem 0.72rem;
929
929
  }
930
930
  .file-viewer-editor,
931
- .file-viewer-preview {
931
+ .file-viewer-preview,
932
+ .file-viewer-changes {
932
933
  width: 100%;
933
934
  height: 100%;
934
935
  min-width: 0;
@@ -953,6 +954,25 @@ body.side-panel-resizing * {
953
954
  padding: 0.85rem;
954
955
  line-height: 1.55;
955
956
  }
957
+ /* Git changes reuse the shared split diff renderer inside the narrower viewer pane. */
958
+ .file-viewer-changes {
959
+ padding: 0.72rem;
960
+ }
961
+ .file-viewer-changes-section {
962
+ gap: 0.5rem;
963
+ }
964
+ .file-viewer-changes .git-diff-grid {
965
+ grid-template-columns: 3rem minmax(11rem, 1fr) 3rem minmax(11rem, 1fr);
966
+ min-width: 30rem;
967
+ }
968
+ .file-viewer-changes-notice {
969
+ margin: 0;
970
+ padding: 0.35rem 0.1rem;
971
+ color: rgba(var(--ctp-subtext-rgb), 0.82);
972
+ font-size: var(--text-xs);
973
+ font-weight: 760;
974
+ }
975
+ .file-viewer-changes-notice.error { color: var(--ctp-red); }
956
976
  .file-viewer-status {
957
977
  flex: 0 0 auto;
958
978
  min-height: 1.1rem;
@@ -1554,7 +1574,7 @@ body.embedded-split .side-panel-backdrop {
1554
1574
  padding: 0.14rem 0.3rem;
1555
1575
  border-radius: 0.36rem;
1556
1576
  font-size: var(--text-xs);
1557
- cursor: context-menu;
1577
+ cursor: pointer;
1558
1578
  }
1559
1579
  .git-side-panel-file:hover,
1560
1580
  .git-side-panel-file:focus-visible { background: rgba(137, 180, 250, 0.10); }
@@ -2823,6 +2843,35 @@ body.embedded-split .side-panel-backdrop {
2823
2843
  }
2824
2844
  .subagent-gate-title strong { color: var(--ctp-text); font-size: 0.75rem; }
2825
2845
  .subagent-gate-title span { color: rgba(var(--ctp-subtext-rgb), 0.72); font-size: var(--text-xs); }
2846
+ .subagent-gate-actions {
2847
+ display: flex;
2848
+ align-items: center;
2849
+ gap: 0.3rem;
2850
+ flex: 0 0 auto;
2851
+ }
2852
+ .subagent-gate-close {
2853
+ display: inline-grid;
2854
+ place-items: center;
2855
+ width: 1.75rem;
2856
+ min-width: 1.75rem;
2857
+ height: 1.75rem;
2858
+ min-height: 1.75rem;
2859
+ padding: 0;
2860
+ border: 1px solid rgba(var(--ctp-subtext-rgb), 0.2);
2861
+ border-radius: 999px;
2862
+ color: rgba(var(--ctp-text-rgb), 0.76);
2863
+ background: rgba(var(--ctp-surface-rgb), 0.2);
2864
+ font: inherit;
2865
+ font-size: 1rem;
2866
+ line-height: 1;
2867
+ cursor: pointer;
2868
+ }
2869
+ .subagent-gate-close:hover,
2870
+ .subagent-gate-close:focus-visible {
2871
+ border-color: rgba(243, 139, 168, 0.48);
2872
+ color: var(--ctp-red);
2873
+ background: rgba(243, 139, 168, 0.12);
2874
+ }
2826
2875
  .subagent-gate-status {
2827
2876
  flex: 0 0 auto;
2828
2877
  padding: 0.08rem 0.34rem;
@@ -3457,6 +3506,23 @@ body.embedded-split .side-panel-backdrop {
3457
3506
  .terminal-tab-group.menu-open .terminal-tab-group-menu {
3458
3507
  display: flex;
3459
3508
  }
3509
+ .terminal-tab-group-summary {
3510
+ width: 100%;
3511
+ padding: 0.56rem 0.62rem;
3512
+ overflow-wrap: anywhere;
3513
+ color: rgba(var(--ctp-text-rgb), 0.92);
3514
+ border: 1px solid rgba(148, 226, 213, 0.24);
3515
+ border-radius: 0.72rem;
3516
+ background:
3517
+ linear-gradient(135deg, rgba(148, 226, 213, 0.11), rgba(203, 166, 247, 0.08)),
3518
+ rgba(var(--ctp-crust-rgb), 0.96);
3519
+ box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 0.65rem 1.25rem rgba(var(--ctp-crust-rgb), 0.28);
3520
+ font-size: max(var(--text-xs), 0.76rem);
3521
+ font-weight: 720;
3522
+ line-height: 1.48;
3523
+ text-align: left;
3524
+ white-space: pre-wrap;
3525
+ }
3460
3526
  .terminal-tab-group-item {
3461
3527
  display: inline-flex;
3462
3528
  flex: 0 0 auto;
@@ -4259,6 +4325,21 @@ button.footer-tui-item {
4259
4325
  opacity: 1;
4260
4326
  transform: translateY(0);
4261
4327
  }
4328
+ .footer-floating-tooltip[data-variant="workspace"] {
4329
+ width: max-content;
4330
+ min-width: min(18rem, calc(100vw - 1rem));
4331
+ padding: 0.72rem 0.8rem;
4332
+ color: rgba(var(--ctp-text-rgb), 0.96);
4333
+ border-color: rgba(148, 226, 213, 0.42);
4334
+ background:
4335
+ linear-gradient(145deg, rgba(148, 226, 213, 0.10), rgba(203, 166, 247, 0.08)),
4336
+ rgba(var(--ctp-crust-rgb), 0.98);
4337
+ box-shadow: 0 1rem 2.2rem rgba(var(--ctp-crust-rgb), 0.55), 0 0 1.2rem rgba(148, 226, 213, 0.10), inset 0 1px 0 rgba(255,255,255,0.06);
4338
+ font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
4339
+ font-size: max(var(--text-xs), 0.78rem);
4340
+ font-weight: 680;
4341
+ line-height: 1.52;
4342
+ }
4262
4343
  .footer-metric {
4263
4344
  display: inline-grid;
4264
4345
  grid-template-columns: auto auto minmax(0, 1fr);
@@ -4376,6 +4457,7 @@ button.footer-meta {
4376
4457
  z-index: 0;
4377
4458
  pointer-events: none;
4378
4459
  background: var(--context-card-gradient);
4460
+ opacity: 0.34;
4379
4461
  clip-path: inset(0 calc(100% - var(--context-usage)) 0 0);
4380
4462
  }
4381
4463
  .footer-context-card > * {
@@ -6731,6 +6813,90 @@ button.git-workflow-step:hover:not(:disabled) {
6731
6813
  .message.toolExecution.tool-error {
6732
6814
  border-color: rgba(243, 139, 168, 0.72);
6733
6815
  }
6816
+ .message.workflowStatusStack {
6817
+ padding: 0.72rem;
6818
+ border-color: rgba(249, 226, 175, 0.42);
6819
+ background: linear-gradient(145deg, rgba(249, 226, 175, 0.13), rgba(var(--ctp-surface-rgb), 0.62));
6820
+ box-shadow:
6821
+ 0 0.3rem 0 -1px rgba(249, 226, 175, 0.16),
6822
+ 0 0.6rem 0 -2px rgba(249, 226, 175, 0.09),
6823
+ 0 0.8rem 1.8rem rgba(var(--ctp-crust-rgb), 0.34);
6824
+ }
6825
+ .message.workflowStatusStack > .message-header {
6826
+ margin-bottom: 0.35rem;
6827
+ }
6828
+ .workflow-status-stack-details {
6829
+ margin: 0;
6830
+ padding: 0;
6831
+ border: 0;
6832
+ border-radius: 0.72rem;
6833
+ background: rgba(var(--ctp-crust-rgb), 0.22);
6834
+ overflow: hidden;
6835
+ }
6836
+ .workflow-status-stack-summary {
6837
+ display: grid;
6838
+ gap: 0.45rem;
6839
+ padding: 0.68rem 0.75rem;
6840
+ cursor: pointer;
6841
+ list-style-position: inside;
6842
+ }
6843
+ .workflow-status-stack-summary:focus-visible {
6844
+ outline: 2px solid var(--ctp-blue);
6845
+ outline-offset: -2px;
6846
+ box-shadow: 0 0 0.9rem rgba(137, 180, 250, 0.28);
6847
+ }
6848
+ .workflow-status-stack-heading,
6849
+ .workflow-status-stack-snapshot {
6850
+ display: flex;
6851
+ align-items: center;
6852
+ gap: 0.4rem;
6853
+ flex-wrap: wrap;
6854
+ min-width: 0;
6855
+ }
6856
+ .workflow-status-stack-count,
6857
+ .workflow-status-stack-error,
6858
+ .workflow-status-stack-field {
6859
+ padding: 0.18rem 0.44rem;
6860
+ border: 1px solid rgba(249, 226, 175, 0.22);
6861
+ border-radius: 999px;
6862
+ color: rgba(var(--ctp-text-rgb), 0.82);
6863
+ background: rgba(var(--ctp-mantle-rgb), 0.62);
6864
+ font-size: var(--text-xs);
6865
+ font-weight: 800;
6866
+ overflow-wrap: anywhere;
6867
+ }
6868
+ .workflow-status-stack-error {
6869
+ border-color: rgba(243, 139, 168, 0.48);
6870
+ color: var(--ctp-red);
6871
+ background: rgba(243, 139, 168, 0.10);
6872
+ }
6873
+ .workflow-status-stack-members {
6874
+ display: grid;
6875
+ gap: 0.55rem;
6876
+ max-height: min(52rem, 65dvh);
6877
+ padding: 0.65rem;
6878
+ border-top: 1px solid rgba(249, 226, 175, 0.14);
6879
+ overflow: auto;
6880
+ scrollbar-gutter: stable;
6881
+ }
6882
+ .workflow-status-stack-member {
6883
+ padding: 0.65rem;
6884
+ border: 1px solid rgba(249, 226, 175, 0.18);
6885
+ border-radius: 0.68rem;
6886
+ background: rgba(var(--ctp-mantle-rgb), 0.52);
6887
+ }
6888
+ .workflow-status-stack-member.error {
6889
+ border-color: rgba(243, 139, 168, 0.62);
6890
+ }
6891
+ .workflow-status-stack-member-title {
6892
+ margin-bottom: 0.45rem;
6893
+ color: rgba(var(--ctp-subtext-rgb), 0.78);
6894
+ font-size: var(--text-xs);
6895
+ font-weight: 850;
6896
+ }
6897
+ .workflow-status-stack-member-body {
6898
+ min-width: 0;
6899
+ }
6734
6900
  .message.streaming {
6735
6901
  outline: 1px solid rgba(148, 226, 213, 0.72);
6736
6902
  box-shadow: 0 0 1.7rem var(--glow-teal), 0 0.8rem 2rem rgba(var(--ctp-crust-rgb), 0.4);
@@ -8050,10 +8216,46 @@ button.composer-skill-tag:focus-visible {
8050
8216
  .composer-publish-menu {
8051
8217
  margin-right: 0.45rem;
8052
8218
  }
8053
- .composer-workflow-mode-controls .composer-workflow-mode-button { margin-right: 0; }
8054
- .composer-workflow-mode-controls.has-open-control {
8219
+ .composer-workflow-mode-dock {
8220
+ position: absolute;
8221
+ top: -0.48rem;
8222
+ right: 3.55rem;
8223
+ z-index: 4;
8224
+ display: flex;
8225
+ align-items: center;
8226
+ width: max-content;
8227
+ max-width: calc(100% - 4.4rem);
8228
+ min-height: 2.25rem;
8229
+ margin: 0;
8230
+ padding: 0;
8231
+ }
8232
+ .composer-workflow-mode-dock[hidden] { display: none !important; }
8233
+ .composer-input-row .composer-workflow-mode-dock button[data-tooltip]::before,
8234
+ .composer-input-row .composer-workflow-mode-dock button[data-tooltip]::after {
8235
+ display: none;
8236
+ }
8237
+ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-dock:not([hidden])) #promptInput {
8238
+ padding-right: 3.35rem;
8239
+ }
8240
+ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-dock:not([hidden])) .composer-context-tags {
8241
+ max-width: calc(100% - 7.5rem);
8242
+ }
8243
+ .composer-workflow-mode-dock.has-open-control {
8055
8244
  min-width: 1.95rem;
8056
- min-height: 1.95rem;
8245
+ min-height: 2.35rem;
8246
+ }
8247
+ .composer-workflow-mode-dock .composer-workflow-mode-button {
8248
+ width: 2.25rem;
8249
+ min-width: 2.25rem;
8250
+ max-width: 2.25rem;
8251
+ height: 2.25rem;
8252
+ min-height: 2.25rem;
8253
+ margin: 0;
8254
+ padding: 0.42rem;
8255
+ }
8256
+ .composer-workflow-mode-dock .composer-workflow-overlay-open-button {
8257
+ top: -0.36rem;
8258
+ right: -0.36rem;
8057
8259
  }
8058
8260
  .composer-workflow-mode-button {
8059
8261
  min-width: 2.9rem;
@@ -8240,6 +8442,7 @@ button.composer-skill-tag:focus-visible {
8240
8442
  }
8241
8443
  .composer-app-runner-menu.has-runners:hover .composer-app-runner-info-button,
8242
8444
  .composer-app-runner-menu.has-runners:focus-within .composer-app-runner-info-button,
8445
+ .composer-app-runner-menu.no-runners .composer-app-runner-info-button,
8243
8446
  .composer-app-runner-info-button:focus-visible {
8244
8447
  opacity: 1;
8245
8448
  pointer-events: auto;
@@ -8463,16 +8666,6 @@ button.composer-skill-tag:focus-visible {
8463
8666
  letter-spacing: 0;
8464
8667
  transform: translateY(0.24rem);
8465
8668
  }
8466
- .composer-row .composer-workflow-mode-button[data-tooltip]::after {
8467
- left: 0;
8468
- right: auto;
8469
- max-width: min(18rem, calc(100vw - 2rem));
8470
- }
8471
- .composer-row .composer-workflow-mode-button[data-tooltip]::before {
8472
- left: 50%;
8473
- right: auto;
8474
- transform: translate(-50%, 0.24rem) rotate(45deg);
8475
- }
8476
8669
  .composer-row button[data-tooltip]:hover::before,
8477
8670
  .composer-row button[data-tooltip]:hover::after,
8478
8671
  .composer-input-row button[data-tooltip]:hover::before,
@@ -8508,11 +8701,6 @@ button.composer-skill-tag:focus-visible {
8508
8701
  .composer-input-row button[data-tooltip].tooltip-open::before {
8509
8702
  transform: translate(-1.2rem, 0) rotate(45deg);
8510
8703
  }
8511
- .composer-row .composer-workflow-mode-button[data-tooltip]:hover::before,
8512
- .composer-row .composer-workflow-mode-button[data-tooltip]:focus-visible::before,
8513
- .composer-row .composer-workflow-mode-button[data-tooltip].tooltip-open::before {
8514
- transform: translate(-50%, 0) rotate(45deg);
8515
- }
8516
8704
  .composer-row .composer-git-button[data-tooltip]::after {
8517
8705
  left: 0;
8518
8706
  right: auto;
@@ -10475,6 +10663,47 @@ body.subagent-terminal-active .composer-remote-mic-consent {
10475
10663
  .app-runner-file-choice:focus-visible {
10476
10664
  background: linear-gradient(120deg, var(--ctp-yellow), var(--ctp-green));
10477
10665
  }
10666
+ .app-runner-custom-feedback.info {
10667
+ color: var(--ctp-sky);
10668
+ border-color: rgba(137, 220, 235, 0.28);
10669
+ background: rgba(137, 220, 235, 0.08);
10670
+ }
10671
+ .app-runner-info-source {
10672
+ color: rgba(var(--ctp-text-rgb), 0.68);
10673
+ font-size: 0.78rem;
10674
+ }
10675
+ .app-runner-search-path-item code {
10676
+ color: var(--ctp-teal);
10677
+ }
10678
+ .app-runner-directory-browser-actions {
10679
+ display: flex;
10680
+ flex-wrap: wrap;
10681
+ gap: 0.42rem;
10682
+ align-items: center;
10683
+ justify-content: flex-end;
10684
+ }
10685
+ .app-runner-directory-use,
10686
+ .app-runner-directory-choose {
10687
+ min-height: 2.25rem;
10688
+ padding: 0.38rem 0.68rem;
10689
+ color: var(--ctp-teal);
10690
+ border-color: rgba(148, 226, 213, 0.32);
10691
+ border-radius: 0.64rem;
10692
+ }
10693
+ .app-runner-directory-use:hover,
10694
+ .app-runner-directory-use:focus-visible,
10695
+ .app-runner-directory-choose:hover,
10696
+ .app-runner-directory-choose:focus-visible {
10697
+ color: #11111b;
10698
+ border-color: transparent;
10699
+ background: linear-gradient(120deg, var(--ctp-teal), var(--ctp-green));
10700
+ }
10701
+ .app-runner-directory-row {
10702
+ display: grid;
10703
+ grid-template-columns: minmax(0, 1fr) auto;
10704
+ gap: 0.42rem;
10705
+ align-items: center;
10706
+ }
10478
10707
 
10479
10708
  .native-command-dialog {
10480
10709
  width: min(56rem, calc(100vw - 2rem));
@@ -10721,6 +10950,71 @@ body.subagent-terminal-active .composer-remote-mic-consent {
10721
10950
  font-size: 0.78rem;
10722
10951
  font-weight: 500;
10723
10952
  }
10953
+ .workflow-policy-textarea {
10954
+ min-height: 7rem;
10955
+ font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
10956
+ }
10957
+ .workflow-policy-suggestions {
10958
+ display: flex;
10959
+ flex-wrap: wrap;
10960
+ align-items: center;
10961
+ gap: 0.34rem;
10962
+ margin-top: 0.34rem;
10963
+ }
10964
+ .workflow-policy-suggestions-label {
10965
+ color: rgba(var(--ctp-text-rgb), 0.68);
10966
+ font-size: 0.78rem;
10967
+ font-weight: 700;
10968
+ }
10969
+ .workflow-policy-suggestion {
10970
+ min-height: 2.1rem;
10971
+ padding: 0.26rem 0.62rem;
10972
+ border: 1px solid rgba(148, 226, 213, 0.28);
10973
+ border-radius: 999px;
10974
+ background: rgba(var(--ctp-crust-rgb), 0.52);
10975
+ color: rgba(var(--ctp-text-rgb), 0.92);
10976
+ font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
10977
+ font-size: 0.78rem;
10978
+ cursor: pointer;
10979
+ }
10980
+ .workflow-policy-suggestion:hover:not(:disabled),
10981
+ .workflow-policy-suggestion:focus-visible {
10982
+ border-color: rgba(148, 226, 213, 0.68);
10983
+ background: rgba(148, 226, 213, 0.14);
10984
+ color: var(--ctp-teal);
10985
+ }
10986
+ .workflow-policy-suggestion:focus-visible {
10987
+ outline: 2px solid var(--ctp-blue);
10988
+ outline-offset: 2px;
10989
+ }
10990
+ .workflow-policy-suggestion:disabled {
10991
+ opacity: 0.52;
10992
+ cursor: default;
10993
+ }
10994
+ .workflow-policy-review {
10995
+ display: grid;
10996
+ gap: 0.5rem;
10997
+ }
10998
+ .workflow-policy-review h3,
10999
+ .workflow-policy-verification-status {
11000
+ margin: 0;
11001
+ }
11002
+ .workflow-policy-preview {
11003
+ max-height: 22rem;
11004
+ margin: 0;
11005
+ padding: 0.82rem;
11006
+ overflow: auto;
11007
+ border: 1px solid rgba(148, 226, 213, 0.24);
11008
+ border-radius: 0.82rem;
11009
+ background: rgba(var(--ctp-crust-rgb), 0.64);
11010
+ color: var(--ctp-teal);
11011
+ font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
11012
+ line-height: 1.45;
11013
+ white-space: pre;
11014
+ }
11015
+ .workflow-policy-verification-status.warning {
11016
+ color: var(--ctp-yellow);
11017
+ }
10724
11018
  .native-tree-options {
10725
11019
  position: sticky;
10726
11020
  top: 0;
@@ -11785,6 +12079,20 @@ button.git-workflow-step { min-height: 1.9rem; }
11785
12079
  box-shadow: 0 -0.85rem 1.8rem rgba(var(--ctp-crust-rgb), 0.56), inset 0 1px 0 rgba(255,255,255,0.04);
11786
12080
  }
11787
12081
  .composer-input-row { gap: 0.36rem; }
12082
+ .composer-workflow-mode-dock {
12083
+ top: -0.4rem;
12084
+ right: 3rem;
12085
+ min-height: 2.25rem;
12086
+ max-width: calc(100% - 3.7rem);
12087
+ padding: 0;
12088
+ }
12089
+ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-dock:not([hidden])) #promptInput { padding-right: 3.35rem; }
12090
+ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-dock:not([hidden])) .composer-context-tags { max-width: calc(100% - 6.5rem); }
12091
+ .composer-workflow-mode-dock .composer-workflow-overlay-open-button {
12092
+ top: -0.2rem;
12093
+ right: -0.2rem;
12094
+ }
12095
+ body.mobile-keyboard-open .composer-workflow-mode-dock { display: none !important; }
11788
12096
  .composer-attach-button {
11789
12097
  width: 2.55rem;
11790
12098
  min-width: 2.55rem;
@@ -12140,15 +12448,29 @@ button.git-workflow-step { min-height: 1.9rem; }
12140
12448
  .native-command-body { max-height: min(28rem, 54dvh); }
12141
12449
  .native-settings-grid,
12142
12450
  .native-tree-options { grid-template-columns: 1fr; }
12451
+ .workflow-policy-suggestions {
12452
+ align-items: stretch;
12453
+ flex-direction: column;
12454
+ }
12455
+ .workflow-policy-suggestion {
12456
+ width: 100%;
12457
+ min-height: 44px;
12458
+ text-align: left;
12459
+ overflow-wrap: anywhere;
12460
+ }
12143
12461
  .app-runner-custom-item,
12144
12462
  .app-runner-custom-path-row,
12463
+ .app-runner-directory-row,
12145
12464
  .app-runner-context-form,
12146
12465
  .app-runner-context-lines-label,
12147
12466
  .app-runner-stdin-form { grid-template-columns: 1fr; }
12148
12467
  .app-runner-custom-item-actions,
12468
+ .app-runner-directory-browser-actions,
12149
12469
  .app-runner-custom-form-actions { justify-content: stretch; }
12150
12470
  .app-runner-custom-item-actions button,
12151
12471
  .app-runner-custom-form-actions button,
12472
+ .app-runner-directory-use,
12473
+ .app-runner-directory-choose,
12152
12474
  .app-runner-custom-browse,
12153
12475
  .app-runner-context-action,
12154
12476
  .app-runner-stdin-send,
@@ -12361,9 +12683,9 @@ button.git-workflow-step { min-height: 1.9rem; }
12361
12683
  isolation: isolate;
12362
12684
  flex: 0 0 auto;
12363
12685
  display: grid;
12364
- gap: 0.82rem;
12686
+ gap: 0.52rem;
12365
12687
  overflow: hidden;
12366
- padding: 0.88rem 1rem 0.78rem;
12688
+ padding: 0.62rem 0.78rem 0.56rem;
12367
12689
  border-bottom: 1px solid rgba(180, 190, 254, 0.18);
12368
12690
  box-shadow: 0 0.9rem 2.2rem rgba(var(--ctp-crust-rgb), 0.20), inset 0 1px 0 rgba(255,255,255,0.045);
12369
12691
  background:
@@ -12389,13 +12711,26 @@ button.git-workflow-step { min-height: 1.9rem; }
12389
12711
  display: flex;
12390
12712
  align-items: start;
12391
12713
  justify-content: space-between;
12392
- gap: 1rem;
12714
+ gap: 0.78rem;
12393
12715
  }
12394
12716
  .workspace-dashboard-title {
12395
12717
  display: grid;
12396
- gap: 0.18rem;
12718
+ flex: 1 1 auto;
12719
+ gap: 0.12rem;
12720
+ min-width: 0;
12721
+ }
12722
+ .workspace-dashboard-summary-row,
12723
+ .workspace-dashboard-identity {
12724
+ display: flex;
12725
+ align-items: center;
12397
12726
  min-width: 0;
12398
12727
  }
12728
+ .workspace-dashboard-summary-row {
12729
+ gap: 0.48rem;
12730
+ }
12731
+ .workspace-dashboard-identity {
12732
+ gap: 0.58rem;
12733
+ }
12399
12734
  .workspace-dashboard-kicker,
12400
12735
  .command-palette-kicker {
12401
12736
  color: var(--ctp-pink);
@@ -12405,11 +12740,12 @@ button.git-workflow-step { min-height: 1.9rem; }
12405
12740
  text-transform: uppercase;
12406
12741
  }
12407
12742
  .workspace-dashboard-title h2 {
12408
- max-width: min(68vw, 54rem);
12743
+ flex: 0 1 auto;
12744
+ max-width: min(42vw, 38rem);
12409
12745
  margin: 0;
12410
12746
  overflow: hidden;
12411
12747
  color: rgba(var(--ctp-text-rgb), 0.94);
12412
- font-size: 1.12rem;
12748
+ font-size: 1rem;
12413
12749
  letter-spacing: 0.01em;
12414
12750
  text-overflow: ellipsis;
12415
12751
  white-space: nowrap;
@@ -12419,7 +12755,8 @@ button.git-workflow-step { min-height: 1.9rem; }
12419
12755
  font-size: 1.05rem;
12420
12756
  }
12421
12757
  .workspace-dashboard-cwd {
12422
- max-width: min(72vw, 58rem);
12758
+ flex: 1 1 9rem;
12759
+ max-width: min(28vw, 28rem);
12423
12760
  margin: 0;
12424
12761
  overflow: hidden;
12425
12762
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
@@ -12430,15 +12767,15 @@ button.git-workflow-step { min-height: 1.9rem; }
12430
12767
  .workspace-dashboard-title-meta {
12431
12768
  display: flex;
12432
12769
  flex-wrap: wrap;
12433
- gap: 0.34rem;
12434
- margin-top: 0.12rem;
12770
+ gap: 0.28rem;
12771
+ min-width: 0;
12435
12772
  }
12436
12773
  .workspace-dashboard-chip {
12437
12774
  display: inline-flex;
12438
12775
  align-items: center;
12439
12776
  gap: 0.24rem;
12440
- min-height: 1.35rem;
12441
- padding: 0.16rem 0.46rem;
12777
+ min-height: 1.2rem;
12778
+ padding: 0.1rem 0.4rem;
12442
12779
  border: 1px solid rgba(180, 190, 254, 0.14);
12443
12780
  border-radius: 999px;
12444
12781
  background: rgba(var(--ctp-crust-rgb), 0.36);
@@ -12475,13 +12812,13 @@ button.workspace-dashboard-chip {
12475
12812
  display: flex;
12476
12813
  flex-wrap: wrap;
12477
12814
  justify-content: flex-end;
12478
- gap: 0.42rem;
12479
- max-width: min(42rem, 54vw);
12815
+ gap: 0.34rem;
12816
+ max-width: min(40rem, 52vw);
12480
12817
  }
12481
12818
  .workspace-dashboard-action {
12482
- min-height: 2.05rem;
12483
- padding: 0.32rem 0.62rem;
12484
- border-radius: 0.72rem;
12819
+ min-height: 1.8rem;
12820
+ padding: 0.24rem 0.54rem;
12821
+ border-radius: 0.62rem;
12485
12822
  font-size: var(--text-xs);
12486
12823
  font-weight: 850;
12487
12824
  white-space: nowrap;
@@ -12505,19 +12842,19 @@ button.workspace-dashboard-chip {
12505
12842
  .workspace-dashboard-metrics {
12506
12843
  display: grid;
12507
12844
  grid-template-columns: minmax(11rem, 1.15fr) minmax(12rem, 1.2fr) minmax(13rem, 1.35fr) minmax(7rem, 0.75fr);
12508
- gap: 0.62rem;
12845
+ gap: 0.46rem;
12509
12846
  }
12510
12847
  .workspace-dashboard-metric {
12511
12848
  position: relative;
12512
12849
  display: grid;
12513
12850
  grid-template-columns: auto minmax(0, 1fr);
12514
- gap: 0.58rem;
12851
+ gap: 0.42rem;
12515
12852
  align-items: start;
12516
12853
  min-width: 0;
12517
- min-height: 5rem;
12518
- padding: 0.68rem;
12854
+ min-height: 3.75rem;
12855
+ padding: 0.48rem 0.52rem;
12519
12856
  border: 1px solid rgba(180, 190, 254, 0.18);
12520
- border-radius: 0.88rem;
12857
+ border-radius: 0.72rem;
12521
12858
  background: rgba(var(--ctp-crust-rgb), 0.5);
12522
12859
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 0.5rem 1.6rem rgba(0, 0, 0, 0.12);
12523
12860
  }
@@ -12535,8 +12872,8 @@ button.workspace-dashboard-chip {
12535
12872
  .workspace-dashboard-metric-icon {
12536
12873
  display: inline-grid;
12537
12874
  place-items: center;
12538
- width: 1.72rem;
12539
- height: 1.72rem;
12875
+ width: 1.48rem;
12876
+ height: 1.48rem;
12540
12877
  border: 1px solid rgba(180, 190, 254, 0.18);
12541
12878
  border-radius: 0.58rem;
12542
12879
  background: rgba(var(--ctp-surface-rgb), 0.46);
@@ -12567,7 +12904,7 @@ button.workspace-dashboard-chip {
12567
12904
  }
12568
12905
  .workspace-dashboard-metric strong {
12569
12906
  display: block;
12570
- margin-top: 0.16rem;
12907
+ margin-top: 0.06rem;
12571
12908
  overflow: hidden;
12572
12909
  color: var(--ctp-text);
12573
12910
  font-size: 0.88rem;
@@ -12576,7 +12913,7 @@ button.workspace-dashboard-chip {
12576
12913
  white-space: nowrap;
12577
12914
  }
12578
12915
  .workspace-dashboard-metric-detail {
12579
- margin-top: 0.12rem;
12916
+ margin-top: 0.04rem;
12580
12917
  overflow: hidden;
12581
12918
  text-overflow: ellipsis;
12582
12919
  white-space: nowrap;
@@ -12584,7 +12921,7 @@ button.workspace-dashboard-chip {
12584
12921
  .workspace-dashboard-mini-meter {
12585
12922
  grid-column: 1 / -1;
12586
12923
  position: relative;
12587
- height: 0.35rem;
12924
+ height: 0.28rem;
12588
12925
  overflow: hidden;
12589
12926
  border-radius: 999px;
12590
12927
  background: rgba(var(--ctp-surface-rgb), 0.74);
@@ -12596,7 +12933,7 @@ button.workspace-dashboard-chip {
12596
12933
  }
12597
12934
  .workspace-dashboard-tabs {
12598
12935
  display: grid;
12599
- gap: 0.44rem;
12936
+ gap: 0.28rem;
12600
12937
  }
12601
12938
  .workspace-dashboard-tabs-header {
12602
12939
  display: flex;
@@ -12611,15 +12948,15 @@ button.workspace-dashboard-chip {
12611
12948
  .workspace-dashboard-tab-list {
12612
12949
  display: flex;
12613
12950
  flex-wrap: wrap;
12614
- gap: 0.38rem;
12951
+ gap: 0.3rem;
12615
12952
  }
12616
12953
  .workspace-dashboard-tab {
12617
12954
  display: inline-flex;
12618
12955
  align-items: center;
12619
12956
  gap: 0.34rem;
12620
12957
  max-width: min(18rem, 40vw);
12621
- min-height: 2rem;
12622
- padding: 0.28rem 0.56rem;
12958
+ min-height: 1.7rem;
12959
+ padding: 0.2rem 0.48rem;
12623
12960
  color: rgba(var(--ctp-text-rgb), 0.84);
12624
12961
  font-size: var(--text-xs);
12625
12962
  }
@@ -12951,8 +13288,15 @@ button.workspace-dashboard-chip {
12951
13288
  width: 1rem;
12952
13289
  height: 1rem;
12953
13290
  }
12954
- .workspace-dashboard { padding: 0.62rem 0.7rem; }
12955
- .workspace-dashboard-metrics { grid-template-columns: 1fr; }
13291
+ .workspace-dashboard { padding: 0.56rem 0.64rem; }
13292
+ .workspace-dashboard-summary-row { align-items: flex-start; }
13293
+ .workspace-dashboard-identity {
13294
+ display: grid;
13295
+ gap: 0.02rem;
13296
+ }
13297
+ .workspace-dashboard-title h2,
13298
+ .workspace-dashboard-cwd { max-width: 100%; }
13299
+ .workspace-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
12956
13300
  .workspace-dashboard-metric { min-height: 0; }
12957
13301
  .workspace-dashboard-tabs-header {
12958
13302
  align-items: flex-start;
@@ -13026,6 +13370,9 @@ button.workspace-dashboard-chip {
13026
13370
  padding-right: 5rem;
13027
13371
  }
13028
13372
  }
13373
+ @media (max-width: 480px) {
13374
+ .workspace-dashboard-metrics { grid-template-columns: 1fr; }
13375
+ }
13029
13376
 
13030
13377
  /* Natural Conversation browser voice loop (Phase 3): per-state chip accents
13031
13378
  and the remote microphone consent banner. */
@@ -13705,3 +14052,182 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
13705
14052
  font-size: var(--text-sm);
13706
14053
  }
13707
14054
  }
14055
+
14056
+ /* Open Issue wizard: kept outside the scrolling Control Deck body. */
14057
+ .side-panel {
14058
+ grid-template-rows: auto minmax(0, 1fr) auto;
14059
+ }
14060
+ .side-panel-footer {
14061
+ display: flex;
14062
+ justify-content: flex-end;
14063
+ padding: 0.72rem 0.95rem calc(0.72rem + env(safe-area-inset-bottom));
14064
+ border-top: 1px solid rgba(180, 190, 254, 0.16);
14065
+ background: linear-gradient(90deg, rgba(var(--ctp-crust-rgb), 0.96), rgba(var(--ctp-base-rgb), 0.82));
14066
+ }
14067
+ .open-issue-button {
14068
+ width: auto;
14069
+ min-width: 8.75rem;
14070
+ min-height: 2.5rem;
14071
+ color: #11111b;
14072
+ border-color: transparent;
14073
+ background: linear-gradient(120deg, var(--ctp-teal), var(--ctp-blue));
14074
+ font-weight: 850;
14075
+ }
14076
+ .open-issue-button:hover,
14077
+ .open-issue-button:focus-visible {
14078
+ color: #11111b;
14079
+ border-color: rgba(203, 166, 247, 0.72);
14080
+ box-shadow: 0 0 0 3px rgba(148, 226, 213, 0.14), 0 0 1.1rem rgba(137, 180, 250, 0.25);
14081
+ }
14082
+ .issue-wizard-dialog {
14083
+ width: min(54rem, calc(100vw - 1.5rem));
14084
+ max-height: min(54rem, calc(var(--visual-viewport-height, 100dvh) - 1.5rem));
14085
+ overflow: hidden;
14086
+ border-color: rgba(148, 226, 213, 0.46);
14087
+ box-shadow: 0 2rem 5rem var(--shadow), 0 0 2.25rem rgba(148, 226, 213, 0.16);
14088
+ }
14089
+ .issue-wizard-dialog form {
14090
+ display: grid;
14091
+ grid-template-rows: auto auto minmax(12rem, 1fr) auto auto auto auto;
14092
+ gap: 0.78rem;
14093
+ max-height: calc(min(54rem, var(--visual-viewport-height, 100dvh)) - 3rem);
14094
+ min-height: 0;
14095
+ }
14096
+ .issue-wizard-header,
14097
+ .issue-wizard-progress-row,
14098
+ .issue-wizard-actions {
14099
+ display: flex;
14100
+ align-items: center;
14101
+ justify-content: space-between;
14102
+ gap: 0.75rem;
14103
+ }
14104
+ .issue-wizard-header { align-items: flex-start; }
14105
+ .issue-wizard-header h2 { margin: 0.14rem 0 0; color: var(--ctp-teal); }
14106
+ .issue-wizard-header p { margin: 0.28rem 0 0; }
14107
+ .issue-wizard-kicker {
14108
+ color: var(--ctp-blue);
14109
+ font-size: var(--text-xs);
14110
+ font-weight: 900;
14111
+ letter-spacing: 0.16em;
14112
+ text-transform: uppercase;
14113
+ }
14114
+ .issue-wizard-progress-row {
14115
+ flex-wrap: wrap;
14116
+ padding: 0.6rem 0.72rem;
14117
+ border: 1px solid rgba(180, 190, 254, 0.18);
14118
+ border-radius: 0.7rem;
14119
+ color: rgba(var(--ctp-subtext-rgb), 0.84);
14120
+ background: rgba(var(--ctp-crust-rgb), 0.46);
14121
+ font-size: var(--text-xs);
14122
+ }
14123
+ .issue-wizard-progress { color: var(--ctp-teal); font-weight: 900; }
14124
+ .issue-wizard-pages {
14125
+ min-height: 0;
14126
+ overflow: auto;
14127
+ overscroll-behavior: contain;
14128
+ padding: 0.1rem 0.15rem 0.25rem;
14129
+ }
14130
+ .issue-wizard-page { display: grid; gap: 0.76rem; }
14131
+ .issue-wizard-intro { margin: 0; color: rgba(var(--ctp-text-rgb), 0.9); line-height: 1.45; }
14132
+ .issue-wizard-choice-grid,
14133
+ .issue-wizard-inline-choices {
14134
+ display: grid;
14135
+ grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
14136
+ gap: 0.62rem;
14137
+ }
14138
+ .issue-wizard-inline-choices { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
14139
+ .issue-wizard-choice {
14140
+ display: grid;
14141
+ gap: 0.28rem;
14142
+ min-height: 3.15rem;
14143
+ padding: 0.65rem 0.75rem;
14144
+ border-color: rgba(180, 190, 254, 0.28);
14145
+ color: var(--ctp-text);
14146
+ background: rgba(var(--ctp-surface-rgb), 0.58);
14147
+ font-weight: 750;
14148
+ line-height: 1.25;
14149
+ text-align: left;
14150
+ white-space: normal;
14151
+ }
14152
+ .issue-wizard-choice strong { color: inherit; font-size: var(--text-sm); }
14153
+ .issue-wizard-choice-description,
14154
+ .issue-wizard-choice-preview { color: rgba(var(--ctp-subtext-rgb), 0.82); font-size: var(--text-xs); font-weight: 500; line-height: 1.4; }
14155
+ .issue-wizard-choice-preview { color: rgba(var(--ctp-teal-rgb), 0.82); }
14156
+ .issue-wizard-choice:hover,
14157
+ .issue-wizard-choice:focus-visible,
14158
+ .issue-wizard-choice.selected {
14159
+ border-color: rgba(148, 226, 213, 0.7);
14160
+ color: var(--ctp-teal);
14161
+ background: rgba(148, 226, 213, 0.1);
14162
+ box-shadow: 0 0 0 2px rgba(148, 226, 213, 0.1), 0 0 0.9rem rgba(148, 226, 213, 0.1);
14163
+ }
14164
+ .issue-wizard-field,
14165
+ .issue-wizard-preview {
14166
+ display: grid;
14167
+ gap: 0.42rem;
14168
+ min-width: 0;
14169
+ }
14170
+ .issue-wizard-field-label { color: rgba(var(--ctp-text-rgb), 0.88); font-size: var(--text-xs); font-weight: 850; letter-spacing: 0.04em; }
14171
+ .issue-wizard-textarea,
14172
+ .issue-wizard-select,
14173
+ .issue-wizard-preview-title,
14174
+ .issue-wizard-preview-body {
14175
+ width: 100%;
14176
+ min-width: 0;
14177
+ padding: 0.68rem 0.74rem;
14178
+ border: 1px solid rgba(180, 190, 254, 0.3);
14179
+ border-radius: 0.7rem;
14180
+ color: var(--ctp-text);
14181
+ background: rgba(var(--ctp-crust-rgb), 0.58);
14182
+ font: inherit;
14183
+ line-height: 1.42;
14184
+ }
14185
+ .issue-wizard-textarea,
14186
+ .issue-wizard-preview-title,
14187
+ .issue-wizard-preview-body { resize: vertical; }
14188
+ .issue-wizard-preview-title,
14189
+ .issue-wizard-preview-body { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
14190
+ .issue-wizard-preview-body { min-height: 14rem; }
14191
+ .issue-wizard-status,
14192
+ .issue-wizard-bot-hint { min-height: 1.25rem; margin: 0; font-size: var(--text-xs); }
14193
+ .issue-wizard-bot-hint { color: var(--ctp-yellow); }
14194
+ .issue-wizard-submission-status {
14195
+ display: grid;
14196
+ gap: 0.56rem;
14197
+ padding: 0.72rem;
14198
+ border: 1px solid rgba(148, 226, 213, 0.34);
14199
+ border-radius: 0.7rem;
14200
+ color: var(--ctp-text);
14201
+ background: rgba(148, 226, 213, 0.08);
14202
+ font-size: var(--text-sm);
14203
+ }
14204
+ .issue-wizard-submission-message,
14205
+ .issue-wizard-security-guidance { margin: 0; line-height: 1.45; }
14206
+ .issue-wizard-submission-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }
14207
+ .issue-wizard-submission-actions a,
14208
+ .issue-wizard-security-guidance a { color: var(--ctp-teal); font-weight: 800; }
14209
+ .issue-wizard-security-guidance { color: var(--ctp-yellow); font-size: var(--text-xs); }
14210
+ .issue-wizard-turnstile { min-height: 0; }
14211
+ .issue-wizard-actions { justify-content: flex-end; flex-wrap: wrap; margin: 0; padding: 0; }
14212
+ .issue-wizard-actions #issueWizardCopyButton { margin-left: auto; }
14213
+ .issue-wizard-actions #issueWizardBotButton:disabled {
14214
+ color: rgba(var(--ctp-subtext-rgb), 0.82);
14215
+ border-color: rgba(var(--ctp-overlay-rgb), 0.4);
14216
+ background: rgba(var(--ctp-surface-rgb), 0.45);
14217
+ }
14218
+
14219
+ @media (max-width: 720px), (max-device-width: 720px), (pointer: coarse) and (hover: none) {
14220
+ .side-panel-footer { padding-inline: 0.75rem; }
14221
+ .open-issue-button { width: 100%; }
14222
+ .issue-wizard-dialog { max-height: calc(var(--visual-viewport-height, 100dvh) - env(safe-area-inset-top)); }
14223
+ .issue-wizard-dialog form { max-height: calc(var(--visual-viewport-height, 100dvh) - 2rem); }
14224
+ .issue-wizard-header,
14225
+ .issue-wizard-progress-row { align-items: stretch; flex-direction: column; }
14226
+ .issue-wizard-header > button { align-self: flex-end; }
14227
+ .issue-wizard-choice-grid,
14228
+ .issue-wizard-inline-choices { grid-template-columns: 1fr; }
14229
+ .issue-wizard-actions { display: grid; grid-template-columns: 1fr 1fr; }
14230
+ .issue-wizard-actions button { width: 100%; }
14231
+ .issue-wizard-actions #issueWizardCopyButton { margin-left: 0; }
14232
+ .issue-wizard-actions #issueWizardBotButton { grid-column: 1 / -1; }
14233
+ }