@firstpick/pi-package-webui 0.9.2 → 0.9.3

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 (77) hide show
  1. package/README.md +13 -7
  2. package/bin/pi-webui.mjs +256 -39
  3. package/index.ts +266 -1
  4. package/lib/git-workflow-preferences.mjs +8 -25
  5. package/lib/intercom-conversations.mjs +491 -0
  6. package/lib/intercom-transcript-filter.mjs +99 -0
  7. package/lib/resource-selection.mjs +140 -0
  8. package/package.json +2 -2
  9. package/public/app.js +1025 -115
  10. package/public/index.html +31 -6
  11. package/public/service-worker.js +2 -1
  12. package/public/stream-output-controller.mjs +15 -0
  13. package/public/styles.css +394 -0
  14. package/public/syntax-highlight.mjs +622 -0
  15. package/tests/boot-failure-diagnostics.test.mjs +3 -3
  16. package/tests/browser/interaction-continuity.spec.mjs +34 -0
  17. package/tests/browser/intercom-conversation-viewer.spec.mjs +355 -0
  18. package/tests/browser/persistent-ui-layout.spec.mjs +61 -0
  19. package/tests/browser/resource-profiles.spec.mjs +200 -0
  20. package/tests/browser/subagent-observability.spec.mjs +29 -0
  21. package/tests/codex-fast-mode-static.test.mjs +7 -6
  22. package/tests/common-options-submenus-interaction-static.test.mjs +2 -0
  23. package/tests/common-options-submenus-markup-static.test.mjs +1 -0
  24. package/tests/composer-action-grid-reorder-static.test.mjs +3 -3
  25. package/tests/composer-skill-tag-layout.test.mjs +32 -2
  26. package/tests/control-deck-component-updates-static.test.mjs +4 -0
  27. package/tests/controls-layout-static.test.mjs +3 -3
  28. package/tests/fast-mode-client-static.test.mjs +2 -2
  29. package/tests/feature-decision-output-popup-static.test.mjs +2 -2
  30. package/tests/feature-system-prompt-optional-feature-static.test.mjs +5 -5
  31. package/tests/file-viewer-image-static.test.mjs +69 -0
  32. package/tests/fixtures/fake-pi.mjs +105 -6
  33. package/tests/foreground-transcript-catch-up-static.test.mjs +1 -1
  34. package/tests/git-panel-file-preview-static.test.mjs +5 -5
  35. package/tests/git-panel-live-updates-static.test.mjs +3 -3
  36. package/tests/git-workflow-preferences.test.mjs +4 -4
  37. package/tests/http-endpoints-harness.test.mjs +124 -2
  38. package/tests/intercom-conversation-viewer-static.test.mjs +105 -0
  39. package/tests/intercom-conversations-http.test.mjs +252 -0
  40. package/tests/intercom-conversations.test.mjs +374 -0
  41. package/tests/intercom-main-transcript-suppression-static.test.mjs +52 -0
  42. package/tests/intercom-tag-layout-static.test.mjs +46 -0
  43. package/tests/intercom-transcript-filter.test.mjs +98 -0
  44. package/tests/main-output-loading-static.test.mjs +59 -0
  45. package/tests/middle-button-drag-scroll-static.test.mjs +3 -3
  46. package/tests/mobile-compact-layout.test.mjs +2 -3
  47. package/tests/mobile-continuity-tablet-static.test.mjs +6 -6
  48. package/tests/mobile-foundation-static.test.mjs +3 -3
  49. package/tests/mobile-phone-experience-static.test.mjs +1 -1
  50. package/tests/mobile-static.test.mjs +63 -39
  51. package/tests/native-parity.test.mjs +8 -7
  52. package/tests/open-issue-wizard-static.test.mjs +1 -1
  53. package/tests/optional-feature-migration-frontend.test.mjs +5 -5
  54. package/tests/optional-feature-resource-setup-static.test.mjs +29 -0
  55. package/tests/persistent-ui-layout-static.test.mjs +3 -3
  56. package/tests/questionnaire-dialog.test.mjs +3 -3
  57. package/tests/remote-auth-settings-harness.test.mjs +1 -1
  58. package/tests/resource-defaults-helper.test.mjs +60 -6
  59. package/tests/resource-selection.test.mjs +114 -0
  60. package/tests/resource-tui-extension.test.mjs +23 -0
  61. package/tests/session-sampling-ui-static.test.mjs +3 -3
  62. package/tests/side-panel-section-height-removal-static.test.mjs +3 -3
  63. package/tests/stream-output-controller.test.mjs +8 -0
  64. package/tests/stream-output-isolation-static.test.mjs +2 -2
  65. package/tests/streaming-ui-coupling.test.mjs +5 -0
  66. package/tests/subagent-gate-visibility.test.mjs +1 -1
  67. package/tests/subagent-launch-slots.test.mjs +1 -1
  68. package/tests/subagent-observability-static.test.mjs +3 -3
  69. package/tests/subagent-reliability-integration.test.mjs +23 -1
  70. package/tests/subagent-workflow-section-static.test.mjs +67 -0
  71. package/tests/subagents-helper.test.mjs +204 -1
  72. package/tests/syntax-highlight.test.mjs +235 -0
  73. package/tests/syntax-highlighting-static.test.mjs +84 -0
  74. package/tests/theme-customizer-static.test.mjs +5 -5
  75. package/tests/thinking-format-parser.test.mjs +64 -0
  76. package/tests/webui-settings-locking.test.mjs +1 -1
  77. package/webui-rpc-helper.mjs +291 -69
package/public/index.html CHANGED
@@ -12,7 +12,7 @@
12
12
  <link rel="manifest" href="/manifest.webmanifest" />
13
13
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
14
14
  <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
15
- <link rel="stylesheet" href="/styles.css?v=115" />
15
+ <link rel="stylesheet" href="/styles.css?v=123" />
16
16
  <script>
17
17
  // Public-only issue-bot runtime configuration. Keep disabled unless the gateway,
18
18
  // Turnstile site key, exact CORS origin, and private-report destination are approved.
@@ -110,8 +110,8 @@
110
110
  <section id="serverRestartPanel" class="server-restart-panel" aria-live="assertive" hidden>
111
111
  <div class="server-restart-card" role="status">
112
112
  <div class="server-restart-spinner" aria-hidden="true"></div>
113
- <span class="server-restart-kicker">Restarting</span>
114
- <h1>Restarting Pi Web UI server</h1>
113
+ <span id="serverRestartKicker" class="server-restart-kicker">Restarting</span>
114
+ <h1 id="serverRestartTitle">Restarting Pi Web UI server</h1>
115
115
  <p id="serverRestartMessage">Waiting for the server to come back…</p>
116
116
  </div>
117
117
  </section>
@@ -296,7 +296,11 @@
296
296
  <button id="chatSearchNextButton" class="chat-search-button" type="button" aria-label="Next match" title="Next match (Enter)">↓</button>
297
297
  <button id="chatSearchCloseButton" class="chat-search-button" type="button" aria-label="Close search" title="Close (Escape)">✕</button>
298
298
  </div>
299
- <div id="chat" class="chat" aria-live="polite">
299
+ <div id="mainOutputLoading" class="main-output-loading" role="status" aria-live="polite" aria-atomic="true" aria-controls="chat" hidden>
300
+ <span class="main-output-loading-spinner" aria-hidden="true"></span>
301
+ <span>Loading agent output…</span>
302
+ </div>
303
+ <div id="chat" class="chat" aria-live="polite" aria-busy="false">
300
304
  <button id="stickyUserPromptButton" class="sticky-user-prompt-button" type="button" aria-controls="chat" hidden></button>
301
305
  </div>
302
306
  <div id="runIndicatorHost" class="run-indicator-host"></div>
@@ -360,6 +364,7 @@
360
364
  aria-live="polite"
361
365
  >Follow-up</button>
362
366
  <div id="sessionSkillTags" class="composer-skill-tags" aria-live="polite" hidden></div>
367
+ <div id="intercomConversationTags" class="composer-intercom-tags" role="group" aria-label="Agent conversations" aria-live="polite" hidden></div>
363
368
  <button id="featureCategoryTag" class="composer-feature-category-tag" type="button" aria-haspopup="dialog" aria-controls="featureDecisionDialog" aria-live="polite" aria-atomic="true" disabled hidden></button>
364
369
  <button id="conversationModeChip" class="composer-conversation-mode-chip" type="button" aria-live="polite" hidden>Voice: off</button>
365
370
  <button id="workflowModeChip" class="composer-workflow-mode-chip" type="button" aria-live="polite" aria-pressed="true" hidden>Workflow: on</button>
@@ -672,7 +677,7 @@
672
677
  <button id="fileViewerCloseButton" type="button" aria-label="Close file viewer">Close</button>
673
678
  </div>
674
679
  </header>
675
- <p id="fileViewerHelp" class="file-viewer-help muted">Files opened from Git start in Changes mode. Markdown files can also be viewed as Preview or Source. Select text in Source or Preview, add a one-line comment, then Send to include the selection and surrounding context in this Pi session.</p>
680
+ <p id="fileViewerHelp" class="file-viewer-help muted">Files opened from Git start in Changes mode. Markdown files can also be viewed as Preview or Source, while supported images open as read-only previews. Select text in Source or Markdown Preview, add a one-line comment, then Send to include the selection and surrounding context in this Pi session.</p>
676
681
  <div id="fileSelectionBar" class="file-selection-bar" hidden>
677
682
  <span id="fileSelectionSummary" class="file-selection-summary">No selection</span>
678
683
  <input id="fileSelectionCommentInput" class="file-selection-comment" type="text" placeholder="Comment for Pi about this selection…" autocomplete="off" />
@@ -696,6 +701,9 @@
696
701
  <pre id="fileViewerSearchOverlay" class="file-viewer-search-overlay" aria-hidden="true" hidden></pre>
697
702
  <textarea id="fileViewerEditor" class="file-viewer-editor" wrap="soft" spellcheck="false" aria-label="File contents"></textarea>
698
703
  <div id="fileViewerPreview" class="file-viewer-preview markdown-body" tabindex="0" hidden></div>
704
+ <div id="fileViewerImage" class="file-viewer-image" tabindex="0" role="group" aria-label="Image preview" hidden>
705
+ <img id="fileViewerImageElement" alt="" />
706
+ </div>
699
707
  <div id="fileViewerChanges" class="file-viewer-changes" tabindex="0" aria-label="Git changes for this file" hidden></div>
700
708
  </div>
701
709
  <p id="fileViewerStatus" class="file-viewer-status muted" role="status" aria-live="polite"></p>
@@ -1489,6 +1497,23 @@
1489
1497
  </form>
1490
1498
  </dialog>
1491
1499
 
1500
+ <dialog id="intercomConversationDialog" class="extension-dialog intercom-conversation-dialog" aria-labelledby="intercomConversationTitle" aria-describedby="intercomConversationParticipants intercomConversationStatus">
1501
+ <form method="dialog">
1502
+ <header class="intercom-conversation-header">
1503
+ <div>
1504
+ <span class="intercom-conversation-kicker">Agent conversation · view only</span>
1505
+ <h2 id="intercomConversationTitle">Agent conversation</h2>
1506
+ <p id="intercomConversationParticipants" class="intercom-conversation-participants muted"></p>
1507
+ </div>
1508
+ </header>
1509
+ <p id="intercomConversationStatus" class="intercom-conversation-status muted" role="status" aria-live="polite" aria-atomic="true"></p>
1510
+ <div id="intercomConversationTranscript" class="intercom-conversation-transcript" role="log" aria-live="polite" aria-relevant="additions text"></div>
1511
+ <menu>
1512
+ <button id="intercomConversationCloseButton" type="submit" value="close">Close</button>
1513
+ </menu>
1514
+ </form>
1515
+ </dialog>
1516
+
1492
1517
  <dialog id="featureDecisionDialog" class="extension-dialog feature-decision-dialog" aria-labelledby="featureDecisionDialogTitle">
1493
1518
  <form method="dialog">
1494
1519
  <h2 id="featureDecisionDialogTitle">Classifier output</h2>
@@ -1794,7 +1819,7 @@
1794
1819
  </form>
1795
1820
  </dialog>
1796
1821
 
1797
- <script id="webuiBootLoader" data-app-src="/app.js?v=132">
1822
+ <script id="webuiBootLoader" data-app-src="/app.js?v=146">
1798
1823
  (() => {
1799
1824
  "use strict";
1800
1825
 
@@ -1,4 +1,4 @@
1
- const CACHE_NAME = "pi-webui-pwa-v94";
1
+ const CACHE_NAME = "pi-webui-pwa-v108";
2
2
  const APP_SHELL = [
3
3
  "/",
4
4
  "/index.html",
@@ -16,6 +16,7 @@ const APP_SHELL = [
16
16
  "/theme-contract.mjs",
17
17
  "/sampling-parameter-controls.mjs",
18
18
  "/transcript-renderer.mjs",
19
+ "/syntax-highlight.mjs",
19
20
  "/subagent-launch-slot-state.mjs",
20
21
  "/subagent-gate-visibility.mjs",
21
22
  "/workflow-status-stack.mjs",
@@ -18,6 +18,21 @@ export const DEFAULT_STREAM_PENDING_BYTE_LIMIT = 256 * 1024;
18
18
 
19
19
  export const TRANSCRIPT_STREAM_MESSAGE_UPDATE_TYPES = Object.freeze(Object.keys(MESSAGE_UPDATE_KINDS));
20
20
 
21
+ /**
22
+ * Keep the longer value when a final snapshot is only a prefix of the text
23
+ * already streamed. Divergent snapshots still win so provider corrections or
24
+ * redactions remain authoritative.
25
+ */
26
+ export function reconcileTranscriptThinkingSnapshot(accumulated, snapshot) {
27
+ const previous = typeof accumulated === "string" ? accumulated : "";
28
+ const next = typeof snapshot === "string" ? snapshot : "";
29
+ if (!previous) return next;
30
+ if (!next) return previous;
31
+ if (next.startsWith(previous)) return next;
32
+ if (previous.startsWith(next)) return previous;
33
+ return next;
34
+ }
35
+
21
36
  export function classifyTranscriptStreamEvent(event) {
22
37
  if (event?.type === "tool_execution_update") {
23
38
  return Object.freeze({ kind: "tool-execution", subtype: "tool_execution_update", recognized: true, barrier: false });
package/public/styles.css CHANGED
@@ -1029,6 +1029,7 @@ body.terminal-tabs-resizing * {
1029
1029
  }
1030
1030
  .file-viewer-editor,
1031
1031
  .file-viewer-preview,
1032
+ .file-viewer-image,
1032
1033
  .file-viewer-changes {
1033
1034
  grid-area: 1 / 1;
1034
1035
  width: 100%;
@@ -1088,6 +1089,19 @@ body.terminal-tabs-resizing * {
1088
1089
  padding: 0.85rem;
1089
1090
  line-height: 1.55;
1090
1091
  }
1092
+ .file-viewer-image {
1093
+ display: grid;
1094
+ place-items: center;
1095
+ padding: 0.85rem;
1096
+ }
1097
+ .file-viewer-image img {
1098
+ display: block;
1099
+ max-width: 100%;
1100
+ max-height: 100%;
1101
+ object-fit: contain;
1102
+ border-radius: 0.5rem;
1103
+ box-shadow: 0 0.75rem 2rem rgba(var(--ctp-crust-rgb), 0.42);
1104
+ }
1091
1105
  /* Git changes reuse the shared split diff renderer inside the narrower viewer pane. */
1092
1106
  .file-viewer-changes {
1093
1107
  padding: 0.72rem;
@@ -3608,6 +3622,59 @@ body.control-deck-section-dragging .side-panel-empty-drop-target {
3608
3622
  margin-left: 0.55rem;
3609
3623
  border-left: 1px solid rgba(203, 166, 247, 0.3);
3610
3624
  }
3625
+ .subagent-workflow {
3626
+ display: grid;
3627
+ gap: 0.08rem;
3628
+ min-width: 0;
3629
+ }
3630
+ .subagent-workflow-header {
3631
+ display: grid;
3632
+ grid-template-columns: auto minmax(0, 1fr) auto;
3633
+ gap: 0.38rem;
3634
+ align-items: center;
3635
+ min-width: 0;
3636
+ min-height: 1.9rem;
3637
+ padding: 0.24rem 0.32rem;
3638
+ border: 1px solid rgba(137, 180, 250, 0.18);
3639
+ border-radius: 0.46rem;
3640
+ color: inherit;
3641
+ background: rgba(137, 180, 250, 0.05);
3642
+ cursor: pointer;
3643
+ list-style: none;
3644
+ }
3645
+ .subagent-workflow-header::-webkit-details-marker { display: none; }
3646
+ .subagent-workflow-header::after {
3647
+ content: "›";
3648
+ color: rgba(var(--ctp-subtext-rgb), 0.58);
3649
+ font-size: 0.92rem;
3650
+ line-height: 1;
3651
+ transform: rotate(90deg);
3652
+ transition: transform 120ms ease;
3653
+ }
3654
+ .subagent-workflow:not([open]) > .subagent-workflow-header::after { transform: rotate(0deg); }
3655
+ .subagent-workflow-header:hover,
3656
+ .subagent-workflow-header:focus-visible {
3657
+ border-color: rgba(137, 180, 250, 0.36);
3658
+ background: rgba(137, 180, 250, 0.1);
3659
+ outline: none;
3660
+ }
3661
+ .subagent-workflow-name {
3662
+ flex: 0 1 auto;
3663
+ min-width: 0;
3664
+ overflow: hidden;
3665
+ color: var(--ctp-blue);
3666
+ font-size: var(--text-xs);
3667
+ text-overflow: ellipsis;
3668
+ white-space: nowrap;
3669
+ }
3670
+ .subagent-workflow-agents {
3671
+ display: grid;
3672
+ gap: 0.08rem;
3673
+ min-width: 0;
3674
+ margin-left: 0.55rem;
3675
+ padding-left: 0.36rem;
3676
+ border-left: 1px solid rgba(137, 180, 250, 0.26);
3677
+ }
3611
3678
  .subagent-agent-identity {
3612
3679
  display: flex;
3613
3680
  align-items: center;
@@ -5376,6 +5443,7 @@ button.subagent-gate-attempt:focus-visible {
5376
5443
  body.terminal-tabs-left .widget-area,
5377
5444
  body.terminal-tabs-left .subagent-terminal-view,
5378
5445
  body.terminal-tabs-left .chat-search-bar,
5446
+ body.terminal-tabs-left .main-output-loading,
5379
5447
  body.terminal-tabs-left .chat,
5380
5448
  body.terminal-tabs-left .run-indicator-host,
5381
5449
  body.terminal-tabs-left .feedback-tray,
@@ -5393,7 +5461,9 @@ button.subagent-gate-attempt:focus-visible {
5393
5461
  body.terminal-tabs-left .widget-area { grid-row: 2; }
5394
5462
  body.terminal-tabs-left .subagent-terminal-view { grid-row: 1 / -1; }
5395
5463
  body.terminal-tabs-left .chat-search-bar { grid-row: 3; }
5464
+ body.terminal-tabs-left .main-output-loading,
5396
5465
  body.terminal-tabs-left .chat { grid-row: 4; }
5466
+ body.terminal-tabs-left .main-output-loading { align-self: start; justify-self: center; margin-top: 0.75rem; }
5397
5467
  body.terminal-tabs-left .run-indicator-host { grid-row: 5; }
5398
5468
  body.terminal-tabs-left .feedback-tray { grid-row: 6; }
5399
5469
  body.terminal-tabs-left .jump-to-latest-button { grid-row: 7; }
@@ -5428,6 +5498,7 @@ button.subagent-gate-attempt:focus-visible {
5428
5498
  body.terminal-tabs-left.terminal-tabs-sidebar-start .widget-area,
5429
5499
  body.terminal-tabs-left.terminal-tabs-sidebar-start .subagent-terminal-view,
5430
5500
  body.terminal-tabs-left.terminal-tabs-sidebar-start .chat-search-bar,
5501
+ body.terminal-tabs-left.terminal-tabs-sidebar-start .main-output-loading,
5431
5502
  body.terminal-tabs-left.terminal-tabs-sidebar-start .chat,
5432
5503
  body.terminal-tabs-left.terminal-tabs-sidebar-start .run-indicator-host,
5433
5504
  body.terminal-tabs-left.terminal-tabs-sidebar-start .feedback-tray,
@@ -8035,6 +8106,41 @@ button.git-workflow-step:hover:not(:disabled) {
8035
8106
  padding: 1rem;
8036
8107
  scroll-behavior: smooth;
8037
8108
  }
8109
+ .main-output-loading[hidden] { display: none !important; }
8110
+ .main-output-loading {
8111
+ position: relative;
8112
+ z-index: 13;
8113
+ display: inline-flex;
8114
+ flex: 0 0 auto;
8115
+ align-self: center;
8116
+ align-items: center;
8117
+ gap: 0.48rem;
8118
+ max-width: calc(100% - 1.2rem);
8119
+ margin: 0.55rem auto 0;
8120
+ padding: 0.42rem 0.7rem;
8121
+ pointer-events: none;
8122
+ user-select: none;
8123
+ border: 1px solid rgba(148, 226, 213, 0.38);
8124
+ border-radius: 999px;
8125
+ color: var(--ctp-teal);
8126
+ background: rgba(var(--ctp-mantle-rgb), 0.92);
8127
+ box-shadow: 0 0.5rem 1.4rem rgba(var(--ctp-crust-rgb), 0.34), 0 0 1rem rgba(148, 226, 213, 0.12);
8128
+ font-size: var(--text-xs);
8129
+ font-weight: 800;
8130
+ line-height: 1.2;
8131
+ }
8132
+ .main-output-loading-spinner {
8133
+ width: 0.9rem;
8134
+ height: 0.9rem;
8135
+ flex: 0 0 auto;
8136
+ border: 2px solid rgba(148, 226, 213, 0.26);
8137
+ border-top-color: var(--ctp-teal);
8138
+ border-radius: 50%;
8139
+ animation: main-output-loading-spin 780ms linear infinite;
8140
+ }
8141
+ @keyframes main-output-loading-spin {
8142
+ to { transform: rotate(360deg); }
8143
+ }
8038
8144
  /* Keep transcript cards top-anchored so textarea autosizing changes only the
8039
8145
  available viewport height instead of translating settled agent output. */
8040
8146
  .chat > .message:first-of-type { margin-top: 0; }
@@ -8752,6 +8858,27 @@ button.git-workflow-step:hover:not(:disabled) {
8752
8858
  display: block;
8753
8859
  min-width: max-content;
8754
8860
  }
8861
+ /* Fenced-code syntax tokens. Colors come from the Pi theme syntax tokens applied
8862
+ as CSS variables, with Catppuccin fallbacks before a theme is applied. */
8863
+ .markdown-code .syntax-token {
8864
+ color: inherit;
8865
+ background: none;
8866
+ }
8867
+ .markdown-code .syntax-comment {
8868
+ color: var(--syntax-comment, var(--ctp-subtext));
8869
+ font-style: italic;
8870
+ }
8871
+ .markdown-code .syntax-keyword {
8872
+ color: var(--syntax-keyword, var(--ctp-mauve));
8873
+ font-weight: 760;
8874
+ }
8875
+ .markdown-code .syntax-function { color: var(--syntax-function, var(--ctp-blue)); }
8876
+ .markdown-code .syntax-variable { color: var(--syntax-variable, var(--ctp-text)); }
8877
+ .markdown-code .syntax-string { color: var(--syntax-string, var(--ctp-green)); }
8878
+ .markdown-code .syntax-number { color: var(--syntax-number, var(--ctp-peach)); }
8879
+ .markdown-code .syntax-type { color: var(--syntax-type, var(--ctp-yellow)); }
8880
+ .markdown-code .syntax-operator { color: var(--syntax-operator, var(--ctp-teal)); }
8881
+ .markdown-code .syntax-punctuation { color: var(--syntax-punctuation, var(--ctp-subtext)); }
8755
8882
  .markdown-mermaid-block {
8756
8883
  overflow-x: auto;
8757
8884
  padding: 0.72rem;
@@ -9235,6 +9362,7 @@ summary { cursor: pointer; color: var(--warning); }
9235
9362
  }
9236
9363
  .composer-busy-mode-tag,
9237
9364
  .composer-skill-tag,
9365
+ .composer-intercom-tag,
9238
9366
  .composer-feature-category-tag,
9239
9367
  .composer-conversation-mode-chip,
9240
9368
  .composer-workflow-mode-chip {
@@ -9293,6 +9421,7 @@ summary { cursor: pointer; color: var(--warning); }
9293
9421
  border-color: rgba(137, 180, 250, 0.38);
9294
9422
  }
9295
9423
  .composer-skill-tags {
9424
+ position: relative;
9296
9425
  display: inline-flex;
9297
9426
  flex: 1 1 0;
9298
9427
  align-items: center;
@@ -9300,9 +9429,87 @@ summary { cursor: pointer; color: var(--warning); }
9300
9429
  min-width: 0;
9301
9430
  overflow: hidden;
9302
9431
  }
9432
+ .composer-skill-tags.overflow-open {
9433
+ overflow: visible;
9434
+ }
9303
9435
  .composer-skill-tags[hidden] {
9304
9436
  display: none !important;
9305
9437
  }
9438
+ .composer-intercom-tags {
9439
+ pointer-events: auto;
9440
+ display: grid;
9441
+ grid-auto-flow: column;
9442
+ grid-auto-columns: minmax(0, 1fr);
9443
+ flex: 1 1 12rem;
9444
+ align-items: center;
9445
+ gap: 0.28rem;
9446
+ min-width: 0;
9447
+ max-width: 100%;
9448
+ padding-block: 0.12rem;
9449
+ }
9450
+ .composer-intercom-tags[hidden] { display: none !important; }
9451
+ .composer-intercom-tags.dense {
9452
+ grid-auto-flow: row;
9453
+ grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
9454
+ align-items: stretch;
9455
+ }
9456
+ .composer-intercom-tag {
9457
+ display: inline-flex;
9458
+ align-items: center;
9459
+ gap: 0.34rem;
9460
+ width: 100%;
9461
+ min-width: 0;
9462
+ max-width: 100%;
9463
+ min-height: 0;
9464
+ margin: 0;
9465
+ padding: 0.14rem 0.5rem;
9466
+ overflow: hidden;
9467
+ border: 1px solid rgba(166, 227, 161, 0.48);
9468
+ border-radius: 999px;
9469
+ color: var(--ctp-green);
9470
+ background:
9471
+ linear-gradient(120deg, rgba(166, 227, 161, 0.22), rgba(148, 226, 213, 0.08)),
9472
+ var(--ctp-crust);
9473
+ box-shadow: 0 0.42rem 1rem rgba(var(--ctp-crust-rgb), 0.42), 0 0 0.9rem rgba(166, 227, 161, 0.16);
9474
+ cursor: pointer;
9475
+ font-size: var(--text-xs);
9476
+ font-weight: 850;
9477
+ line-height: 1.1;
9478
+ white-space: nowrap;
9479
+ }
9480
+ .composer-intercom-tag:hover,
9481
+ .composer-intercom-tag:focus-visible {
9482
+ border-color: rgba(166, 227, 161, 0.78);
9483
+ box-shadow: 0 0.42rem 1rem rgba(var(--ctp-crust-rgb), 0.42), 0 0 1.1rem rgba(166, 227, 161, 0.3);
9484
+ transform: translateY(-1px);
9485
+ }
9486
+ .composer-intercom-tag-icon {
9487
+ flex: 0 0 auto;
9488
+ color: var(--ctp-teal);
9489
+ }
9490
+ .composer-intercom-tag-label {
9491
+ flex: 1 1 auto;
9492
+ min-width: 0;
9493
+ overflow: hidden;
9494
+ text-overflow: ellipsis;
9495
+ white-space: nowrap;
9496
+ }
9497
+ .composer-intercom-tag-count {
9498
+ flex: 0 0 auto;
9499
+ min-width: 1.25rem;
9500
+ padding: 0.08rem 0.3rem;
9501
+ border-radius: 999px;
9502
+ color: var(--ctp-crust);
9503
+ background: var(--ctp-green);
9504
+ font-size: var(--text-xs);
9505
+ font-variant-numeric: tabular-nums;
9506
+ line-height: 1.1;
9507
+ text-align: center;
9508
+ }
9509
+ @media (max-width: 720px), (max-device-width: 720px), (pointer: coarse) and (hover: none) {
9510
+ .composer-intercom-tags { flex: 1 1 100%; min-width: 0; }
9511
+ .composer-intercom-tag { min-height: 44px; }
9512
+ }
9306
9513
  .composer-feature-category-tag {
9307
9514
  flex: 0 1 auto;
9308
9515
  min-width: 0;
@@ -9552,6 +9759,49 @@ button.composer-skill-tag:focus-visible {
9552
9759
  font-variant-numeric: tabular-nums;
9553
9760
  border-color: rgba(166, 173, 200, 0.30);
9554
9761
  background: linear-gradient(120deg, rgba(166, 173, 200, 0.22), rgba(166, 173, 200, 0.08)), var(--ctp-crust);
9762
+ cursor: pointer;
9763
+ }
9764
+ .composer-skill-tag.overflow[aria-expanded="true"] {
9765
+ color: var(--ctp-teal);
9766
+ border-color: rgba(148, 226, 213, 0.68);
9767
+ box-shadow: 0 0.35rem 0.9rem rgba(var(--ctp-crust-rgb), 0.48), 0 0 1rem rgba(148, 226, 213, 0.28);
9768
+ }
9769
+ .composer-skill-overflow-menu {
9770
+ position: absolute;
9771
+ right: 0;
9772
+ bottom: calc(100% + 0.42rem);
9773
+ z-index: 150;
9774
+ display: grid;
9775
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
9776
+ gap: 0.34rem;
9777
+ box-sizing: border-box;
9778
+ width: min(24rem, calc(100vw - 1.5rem));
9779
+ max-height: min(42vh, 18rem);
9780
+ padding: 0.46rem;
9781
+ overflow-y: auto;
9782
+ overscroll-behavior: contain;
9783
+ pointer-events: auto;
9784
+ border: 1px solid rgba(148, 226, 213, 0.32);
9785
+ border-radius: 0.9rem;
9786
+ background: var(--ctp-crust);
9787
+ box-shadow: 0 0.9rem 2.2rem rgba(var(--ctp-crust-rgb), 0.72), 0 0 1rem rgba(148, 226, 213, 0.16), inset 0 1px 0 rgba(255,255,255,0.05);
9788
+ }
9789
+ .composer-skill-overflow-menu[hidden] {
9790
+ display: none !important;
9791
+ }
9792
+ .composer-skill-overflow-menu .composer-skill-tag {
9793
+ width: 100%;
9794
+ max-width: none;
9795
+ min-height: 2rem;
9796
+ }
9797
+ @media (max-width: 720px), (max-device-width: 720px), (pointer: coarse) and (hover: none) {
9798
+ .composer-skill-overflow-menu {
9799
+ width: min(24rem, calc(100vw - 1rem));
9800
+ max-height: min(50vh, 20rem);
9801
+ }
9802
+ .composer-skill-overflow-menu .composer-skill-tag {
9803
+ min-height: 44px;
9804
+ }
9555
9805
  }
9556
9806
  .composer-busy-mode-menu {
9557
9807
  position: absolute;
@@ -11371,6 +11621,148 @@ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-
11371
11621
  .git-pull-error-dialog menu button { width: 100%; }
11372
11622
  }
11373
11623
 
11624
+ .extension-dialog.intercom-conversation-dialog {
11625
+ width: min(76rem, calc(100vw - 1.5rem));
11626
+ height: min(54rem, calc(var(--visual-viewport-height, 100dvh) - 1.5rem));
11627
+ max-width: calc(100vw - 1.5rem);
11628
+ max-height: calc(var(--visual-viewport-height, 100dvh) - 1.5rem);
11629
+ overflow: hidden;
11630
+ border-color: rgba(166, 227, 161, 0.46);
11631
+ background:
11632
+ radial-gradient(circle at 0 0, rgba(148, 226, 213, 0.12), transparent 30rem),
11633
+ linear-gradient(145deg, rgba(var(--ctp-base-rgb), 0.99), rgba(var(--ctp-crust-rgb), 0.99));
11634
+ box-shadow: 0 2rem 5rem var(--shadow), 0 0 2.4rem rgba(166, 227, 161, 0.18);
11635
+ }
11636
+ .intercom-conversation-dialog form {
11637
+ display: grid;
11638
+ grid-template-rows: auto auto minmax(0, 1fr) auto;
11639
+ gap: 0.72rem;
11640
+ height: 100%;
11641
+ min-height: 0;
11642
+ padding: clamp(0.8rem, 1.8vw, 1.35rem);
11643
+ }
11644
+ .intercom-conversation-header {
11645
+ display: flex;
11646
+ align-items: start;
11647
+ justify-content: space-between;
11648
+ gap: 1rem;
11649
+ }
11650
+ .intercom-conversation-kicker {
11651
+ display: block;
11652
+ margin-bottom: 0.22rem;
11653
+ color: var(--ctp-teal);
11654
+ font-size: var(--text-xs);
11655
+ font-weight: 900;
11656
+ letter-spacing: 0.1em;
11657
+ text-transform: uppercase;
11658
+ }
11659
+ .intercom-conversation-dialog h2,
11660
+ .intercom-conversation-participants,
11661
+ .intercom-conversation-status,
11662
+ .intercom-conversation-dialog menu { margin: 0; }
11663
+ .intercom-conversation-dialog h2 {
11664
+ color: var(--ctp-green);
11665
+ overflow-wrap: anywhere;
11666
+ text-shadow: 0 0 1rem rgba(166, 227, 161, 0.18);
11667
+ }
11668
+ .intercom-conversation-participants {
11669
+ margin-top: 0.28rem;
11670
+ overflow-wrap: anywhere;
11671
+ }
11672
+ .intercom-conversation-status {
11673
+ min-height: 1.25rem;
11674
+ color: rgba(var(--ctp-subtext-rgb), 0.78);
11675
+ font-size: var(--text-xs);
11676
+ }
11677
+ .intercom-conversation-status.warn { color: var(--ctp-yellow); }
11678
+ .intercom-conversation-status.error { color: var(--ctp-red); }
11679
+ .intercom-conversation-transcript {
11680
+ display: flex;
11681
+ flex-direction: column;
11682
+ gap: 0.72rem;
11683
+ min-height: 0;
11684
+ padding: clamp(0.7rem, 1.6vw, 1.2rem);
11685
+ overflow: auto;
11686
+ border: 1px solid rgba(166, 227, 161, 0.24);
11687
+ border-radius: 0.9rem;
11688
+ background:
11689
+ radial-gradient(circle at 100% 0, rgba(137, 180, 250, 0.08), transparent 24rem),
11690
+ rgba(var(--ctp-crust-rgb), 0.68);
11691
+ overscroll-behavior: contain;
11692
+ scrollbar-gutter: stable;
11693
+ }
11694
+ .intercom-conversation-message {
11695
+ align-self: flex-start;
11696
+ width: fit-content;
11697
+ max-width: min(78%, 54rem);
11698
+ padding: 0.72rem 0.82rem;
11699
+ border: 1px solid rgba(166, 227, 161, 0.26);
11700
+ border-radius: 0.3rem 1rem 1rem 1rem;
11701
+ background: rgba(166, 227, 161, 0.1);
11702
+ box-shadow: 0 0.7rem 1.6rem rgba(var(--ctp-crust-rgb), 0.3);
11703
+ }
11704
+ .intercom-conversation-message.local {
11705
+ align-self: flex-end;
11706
+ border-color: rgba(137, 180, 250, 0.32);
11707
+ border-radius: 1rem 0.3rem 1rem 1rem;
11708
+ background: rgba(137, 180, 250, 0.13);
11709
+ }
11710
+ .intercom-conversation-message-header {
11711
+ display: flex;
11712
+ flex-wrap: wrap;
11713
+ align-items: baseline;
11714
+ justify-content: space-between;
11715
+ gap: 0.4rem 0.8rem;
11716
+ margin-bottom: 0.36rem;
11717
+ }
11718
+ .intercom-conversation-message-sender {
11719
+ color: var(--ctp-green);
11720
+ font-size: var(--text-sm);
11721
+ overflow-wrap: anywhere;
11722
+ }
11723
+ .intercom-conversation-message.local .intercom-conversation-message-sender { color: var(--ctp-blue); }
11724
+ .intercom-conversation-message-time {
11725
+ color: rgba(var(--ctp-subtext-rgb), 0.72);
11726
+ font-size: var(--text-xs);
11727
+ white-space: nowrap;
11728
+ }
11729
+ .intercom-conversation-message-text {
11730
+ margin: 0;
11731
+ color: var(--ctp-text);
11732
+ line-height: 1.5;
11733
+ overflow-wrap: anywhere;
11734
+ user-select: text;
11735
+ white-space: pre-wrap;
11736
+ }
11737
+ .intercom-conversation-truncated {
11738
+ display: block;
11739
+ margin-top: 0.45rem;
11740
+ color: var(--ctp-yellow);
11741
+ font-size: var(--text-xs);
11742
+ font-weight: 800;
11743
+ }
11744
+ .intercom-conversation-empty {
11745
+ margin: auto;
11746
+ color: rgba(var(--ctp-subtext-rgb), 0.72);
11747
+ text-align: center;
11748
+ }
11749
+ .intercom-conversation-dialog menu {
11750
+ display: flex;
11751
+ justify-content: flex-end;
11752
+ padding: 0;
11753
+ }
11754
+ @media (max-width: 720px), (max-device-width: 720px), (pointer: coarse) and (hover: none) {
11755
+ .extension-dialog.intercom-conversation-dialog {
11756
+ width: calc(100vw - 0.7rem);
11757
+ height: calc(var(--visual-viewport-height, 100dvh) - 0.7rem);
11758
+ max-width: calc(100vw - 0.7rem);
11759
+ max-height: calc(var(--visual-viewport-height, 100dvh) - 0.7rem);
11760
+ }
11761
+ .intercom-conversation-dialog form { padding: 0.72rem; }
11762
+ .intercom-conversation-message { max-width: 92%; }
11763
+ .intercom-conversation-dialog menu button { width: 100%; min-height: 44px; }
11764
+ }
11765
+
11374
11766
  .extension-dialog.feature-decision-dialog {
11375
11767
  width: min(30rem, calc(100vw - 2rem));
11376
11768
  }
@@ -12164,6 +12556,7 @@ body:not(.mobile-keyboard-open) .composer-input-row:has(.composer-workflow-mode-
12164
12556
  }
12165
12557
  body.subagent-terminal-active .workspace-dashboard,
12166
12558
  body.subagent-terminal-active .widget-area,
12559
+ body.subagent-terminal-active .main-output-loading,
12167
12560
  body.subagent-terminal-active .chat,
12168
12561
  body.subagent-terminal-active .feedback-tray,
12169
12562
  body.subagent-terminal-active .jump-to-latest-button,
@@ -18271,6 +18664,7 @@ html[data-density="compact"] .composer { padding-block: 0.5rem; }
18271
18664
  background: rgba(var(--ctp-crust-rgb), 0.34);
18272
18665
  }
18273
18666
  body.mobile-composer-disclosure .composer-actions-panel > .composer-context-tags > * { pointer-events: auto; }
18667
+ body.mobile-composer-disclosure .composer-intercom-tag { min-height: 44px; }
18274
18668
  body.mobile-composer-disclosure .composer-actions-panel > .composer-busy-mode-menu {
18275
18669
  display: grid;
18276
18670
  z-index: auto;