@floless/app 0.151.0 → 0.152.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/web/app.css CHANGED
@@ -1726,6 +1726,47 @@
1726
1726
  body:has(#graft-modal.show) #instructor .ix-hint,
1727
1727
  body:has(#graft-modal.show) #instructor .ix-ask-split { display: none; }
1728
1728
  #graft-instructor-note { display: none; }
1729
+ /* Directory decisions keep their conditional F1 guidance visible above this backdrop. */
1730
+ body:has(.app.has-instructor) #workspace-root-modal.show {
1731
+ box-sizing: border-box;
1732
+ padding-bottom: 128px; /* 84px max strip + 44px footer */
1733
+ }
1734
+ body:has(.app.has-instructor) #workspace-root-modal.show .modal.workspace-root-modal {
1735
+ max-height: min(86vh, calc(100dvh - 152px)); /* 128px reserve + 24px top air, same derivation as Graft's 102 */
1736
+ overflow-y: auto; /* themed by the global * scrollbar rule (thumb --border-strong on --surface reads in both themes) */
1737
+ }
1738
+ body:has(#workspace-root-modal.show) .app.has-instructor #instructor {
1739
+ position: relative;
1740
+ z-index: 101; /* above .modal-backdrop (100), below #form-modal/#confirm-modal/#command-sheet (110) and toasts (200) */
1741
+ pointer-events: auto;
1742
+ height: auto; /* also overrides .instructor.collapsed's 22px; explainCurrent() expands anyway */
1743
+ min-height: 34px;
1744
+ max-height: 84px;
1745
+ align-items: flex-start;
1746
+ padding: 8px 14px;
1747
+ line-height: 1.45;
1748
+ white-space: normal;
1749
+ overflow-y: auto;
1750
+ /* Explicit, NOT the global rule: in dark Block 2 --border-strong == --surface-2 (both hsl 217.2 32.6% 17.5%), so the global thumb is invisible on the band. Same values as #graft-instructor-note. */
1751
+ scrollbar-width: thin;
1752
+ scrollbar-color: var(--text-dim) transparent;
1753
+ }
1754
+ body:has(#workspace-root-modal.show) #instructor::-webkit-scrollbar { width: 7px; }
1755
+ body:has(#workspace-root-modal.show) #instructor::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 7px; }
1756
+ body:has(#workspace-root-modal.show) #instructor::-webkit-scrollbar-track { background: transparent; }
1757
+ body:has(#workspace-root-modal.show) #instructor .ix-parts {
1758
+ display: block; /* the segments flow as one wrapped sentence instead of a clipped flex row of flex:none spans */
1759
+ flex: 1 1 auto;
1760
+ min-width: 0;
1761
+ overflow: visible;
1762
+ overflow-wrap: anywhere; /* long directory paths in {instance} */
1763
+ }
1764
+ body:has(#workspace-root-modal.show) #instructor .ix-sep { margin: 0 6px; } /* replaces the flex gap lost with display:block */
1765
+ body:has(#workspace-root-modal.show) #instructor button,
1766
+ body:has(#workspace-root-modal.show) #instructor .ix-hint,
1767
+ body:has(#workspace-root-modal.show) #instructor .ix-ask-split { display: none; } /* keeps focus in the dialog: toggle, Ask, ask-caret and hint link all gone */
1768
+ #workspace-root-instructor-note { display: none; } /* desktop: the band carries it */
1769
+
1729
1770
  /* The shared form and confirmation modals are the ones OTHER modals open on top of themselves —
1730
1771
  run options and desktop-claim release over Requests, the folder over Integrations — so they
1731
1772
  cannot share their z-index. Every backdrop
@@ -1795,6 +1836,30 @@
1795
1836
  border-radius:5px; background:color-mix(in srgb, var(--err) 8%, transparent); color:var(--err);
1796
1837
  font-size:11px; line-height:1.45; }
1797
1838
  .workspace-root-error[hidden] { display:none; }
1839
+ .workspace-root-management { margin:12px 0; border-top:1px solid var(--border); padding-top:12px; }
1840
+ .workspace-root-management h3, .workspace-root-management h4 { margin:0 0 9px; font-size:12px; color:var(--text); }
1841
+ .workspace-root-management-list, .workspace-root-management-destinations { max-height:180px; overflow:auto;
1842
+ scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
1843
+ .workspace-root-management-list::-webkit-scrollbar, .workspace-root-management-destinations::-webkit-scrollbar { width:6px; }
1844
+ .workspace-root-management-list::-webkit-scrollbar-thumb, .workspace-root-management-destinations::-webkit-scrollbar-thumb { background:var(--border-strong); border-radius:3px; }
1845
+ .workspace-root-management-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 0; border-bottom:1px solid var(--border); }
1846
+ .workspace-root-management-row > div { min-width:0; }
1847
+ .workspace-root-management code { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:10.5px var(--mono); color:var(--text); }
1848
+ .workspace-root-management code.workspace-root-management-target,
1849
+ .workspace-root-management-choice code,
1850
+ .workspace-root-management-reviewing .workspace-root-management-note code {
1851
+ white-space:normal; overflow-wrap:anywhere; overflow:visible; text-overflow:clip; line-height:1.5;
1852
+ }
1853
+ .workspace-root-management-state, .workspace-root-management-note, .workspace-root-management-message { color:var(--text-muted); font-size:11px; line-height:1.45; }
1854
+ .workspace-root-management-state.is-unavailable { color:var(--warn); }
1855
+ .workspace-root-management-note { margin:9px 0; }
1856
+ .workspace-root-management-message { padding:8px 0; }
1857
+ .workspace-root-management-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }
1858
+ .workspace-root-management-destinations { display:flex; flex-direction:column; align-items:stretch; gap:7px; }
1859
+ .workspace-root-management-choice { text-align:left; }
1860
+ .workspace-root-management-choice[aria-pressed="true"] { border-color:var(--accent); background:var(--surface-2); }
1861
+ .workspace-root-management-reviewing #workspace-root-change,
1862
+ .workspace-root-management-reviewing #workspace-root-use { display:none !important; }
1798
1863
  .workspace-root-modal[aria-busy="true"] { cursor:wait; }
1799
1864
  body.workspace-root-switching .mode-switch,
1800
1865
  body.workspace-root-switching #wf-trigger,
@@ -2133,6 +2198,8 @@
2133
2198
  .lib-update-error { margin: 4px 0 0; padding: 7px 10px; border-left: 2px solid var(--err);
2134
2199
  background: var(--surface-2); color: var(--text-muted); font-size: 11px; line-height: 1.45; }
2135
2200
  .lib-update-error strong { color: var(--err); font-weight: 600; }
2201
+ /* C12 (#1337): a damaged tool's explanation reads in --text (muted on --surface-2 is under 4.5:1 in light). */
2202
+ .lib-card-unreadable .lib-update-error { color: var(--text); }
2136
2203
 
2137
2204
  /* Two-tab Agent Library: the tab bar sits between title and panes; each pane is a
2138
2205
  flex column so its inner .lib-list keeps scrolling within the modal's max-height.
@@ -2213,6 +2280,12 @@
2213
2280
  margin-bottom: 10px;
2214
2281
  line-height: 1.5;
2215
2282
  }
2283
+ .integrations-hint.ri-send-error {
2284
+ color: var(--text);
2285
+ border-color: color-mix(in srgb, var(--err) 45%, var(--border));
2286
+ font-size: 12px;
2287
+ }
2288
+ .integrations-hint[hidden] { display: none; }
2216
2289
  .integrations-hint code {
2217
2290
  font-family: var(--mono);
2218
2291
  font-size: 10px;
@@ -2478,6 +2551,13 @@
2478
2551
  .req-scope .req-scope-n { color: var(--text-muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
2479
2552
  .req-scope button.active .req-scope-n { color: var(--accent-dim); }
2480
2553
  .req-search { margin-bottom: 10px; flex: 0 0 auto; }
2554
+ /* #2060: Queued | Done. The shared .tabs language, uppercased, so it reads as the window's top-level choice above
2555
+ the scope tabs (which carry real names and stay mixed case). Transparent so it sits on the modal, not a panel. */
2556
+ .req-view { margin: 2px 0 10px; background: transparent; flex: 0 0 auto; }
2557
+ .req-done-item .req-done-run { margin-top: 5px; font-size: 11px; }
2558
+ .req-done-skipped { font-size: 11px; padding: 2px 2px 0; }
2559
+ .req-done-note { margin-right: auto; align-self: center; font-size: 11px; color: var(--text-dim); }
2560
+ .req-done-note[hidden] { display: none; }
2481
2561
  .req-guidance { margin: -2px 0 10px; padding: 9px 10px; border-left: 2px solid var(--accent);
2482
2562
  background: var(--accent-soft); color: var(--text); font-size: 11.5px; line-height: 1.5; }
2483
2563
  .req-guidance[hidden] { display: none; }
@@ -2740,6 +2820,15 @@
2740
2820
  .req-run-badge-err { background: color-mix(in srgb, var(--err) 15%, transparent); color: var(--err); }
2741
2821
  .req-run-badge-muted { background: var(--surface-3); color: var(--text-dim); }
2742
2822
  .req-run-note { margin: 0; color: var(--text-muted); line-height: 1.45; }
2823
+ /* #2061: a request waiting for other work to finish changing its project. Same block as a run's status; its one
2824
+ action is a quiet link-button to the work it waits for. */
2825
+ .req-wait-actions { display: flex; flex-wrap: wrap; gap: 8px; }
2826
+ .req-wait-open { appearance: none; padding: 0; border: 0; background: none; cursor: pointer; font: inherit;
2827
+ font-size: 11px; color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
2828
+ .req-wait-open:hover { color: var(--text); }
2829
+ .req-wait-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
2830
+ /* The Start-in-AI-Chat ask (#2061): "Stop it" reads as the cautious choice, in the theme's warn colour. */
2831
+ .req-busy-dialog .modal-actions .req-busy-stop { color: var(--warn); }
2743
2832
  .req-run-answer { color: var(--text); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
2744
2833
  .req-run-where { font-family: var(--mono); font-size: 10px; color: var(--text-dim);
2745
2834
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@@ -3025,7 +3114,12 @@
3025
3114
 
3026
3115
  .graft-hint { color: var(--text-dim); font-size: 11px; margin-top: 4px; }
3027
3116
  .graft-row { display: flex; gap: 8px; align-items: center; }
3028
- .graft-row input[type="text"] { flex: 1 1 auto; }
3117
+ .graft-row input[type="text"] { flex: 1 1 auto; min-width: 0; }
3118
+ /* #2055: Choose folder… is the dialog's plain secondary button, kept on one line beside the field. */
3119
+ .graft-row .graft-choose { flex: 0 0 auto; white-space: nowrap; }
3120
+ .graft-row .graft-choose:disabled { opacity: 0.5; cursor: default; }
3121
+ .graft-origin { color: var(--text-muted); margin: 0 0 6px; line-height: 1.4; }
3122
+ .graft-origin[hidden] { display: none; }
3029
3123
  .graft-matched { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; margin-top: 8px; }
3030
3124
  .graft-matched-h { color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
3031
3125
  .graft-matched-f { font-family: var(--mono); font-size: 11px; color: var(--text-dim); line-height: 1.6; }
@@ -3047,9 +3141,12 @@
3047
3141
  .graft-identity { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 6px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: 12px; margin: 0; }
3048
3142
  .graft-identity dt { color: var(--text-muted); text-transform: uppercase; font-size: 10px; letter-spacing: 0.04em; align-self: center; margin: 0; }
3049
3143
  .graft-identity dd { color: var(--text); font-family: var(--mono); margin: 0; }
3144
+ /* #2116: a sentence explaining why there is no check reads as prose, not as an identifier. */
3145
+ .graft-identity dd.graft-identity-prose { font-family: inherit; line-height: 1.45; }
3050
3146
 
3051
3147
  .graft-success { text-align: center; padding: 26px 8px; }
3052
3148
  .graft-success .gs-icon { font-size: 30px; color: var(--ok); }
3149
+ .graft-success.is-held .gs-icon { color: var(--warn); }
3053
3150
  .graft-success .gs-msg { margin-top: 8px; font-size: 13px; color: var(--text); }
3054
3151
  .graft-read-review { display: flex; flex-direction: column; gap: 9px; padding: 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2); font-size: 12px; color: var(--text); }
3055
3152
  .graft-read-review p { margin: 0; color: var(--text-muted); line-height: 1.45; }
@@ -3186,6 +3283,10 @@
3186
3283
  .tool-updates-pill[data-state="nudge"]:hover,
3187
3284
  .tool-updates-pill[data-state="needs"]:hover { border-color: var(--warn); color: var(--warn); }
3188
3285
  .tool-updates-pill[data-state="urgent"]:hover { border-color: var(--err); color: var(--err); }
3286
+ /* A check this page started and is still waiting on (#2143): the default accent pill plus the panel's pulsing dot. Only when there is
3287
+ nothing else to say; when something needs the person the pill keeps its colour and only gains " · checking…". */
3288
+ .tool-updates-pill[data-state="checking"]::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: aware-update-pulse 1.2s ease-in-out infinite; }
3289
+ @media (prefers-reduced-motion: reduce) { .tool-updates-pill[data-state="checking"]::before { animation: none; } }
3189
3290
  #tool-updates-modal .tool-updates-dialog { width: 560px; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; }
3190
3291
  #tool-updates-modal .modal-title:focus { outline: none; }
3191
3292
  #tool-updates-modal .modal-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
@@ -3238,13 +3339,49 @@
3238
3339
  .tool-updates-result-name { color: var(--text); font-size: 12px; font-weight: 600; }
3239
3340
  .tool-updates-result-sentence { color: var(--text); font-size: 11.5px; line-height: 1.4; }
3240
3341
  .tool-updates-result-label { color: var(--text-dim); font-size: 10.5px; line-height: 1.4; overflow-wrap: anywhere; }
3241
- .tool-updates-live { min-height: 0; margin-top: 10px; color: var(--text); font-size: 12px; line-height: 1.45; }
3342
+ /* flex:none on every row under the scrolling body: they are flex items of a column capped at 86vh, and a row with
3343
+ min-height:0 and the default shrink is squeezed in proportion to the body, so its text ran onto the next row.
3344
+ The body is the one thing that scrolls. */
3345
+ .tool-updates-live { flex: none; margin-top: 12px; color: var(--text); font-size: 12px; line-height: 1.45; }
3242
3346
  .tool-updates-live:empty { margin-top: 0; }
3243
- #tool-updates-modal[aria-busy="true"] .tool-updates-live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); animation: aware-update-pulse 1.2s ease-in-out infinite; }
3347
+ #tool-updates-modal[aria-busy="true"] .tool-updates-live:not(:empty)::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); animation: aware-update-pulse 1.2s ease-in-out infinite; }
3244
3348
  @media (prefers-reduced-motion: reduce) {
3245
- #tool-updates-modal[aria-busy="true"] .tool-updates-live::before { animation: none; }
3246
- }
3247
- .tool-updates-foot { flex: none; margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
3349
+ #tool-updates-modal[aria-busy="true"] .tool-updates-live:not(:empty)::before { animation: none; }
3350
+ }
3351
+ /* A running check: the server's own steps, the active one marked, how long it has been on its current item. Same
3352
+ card recipe as .tool-updates-summary. No bar, percentage or estimate: the server knows its steps and "n of m",
3353
+ not a total. Detail text and the clock use --text-muted rather than --text-dim, which is too faint for 11px text on
3354
+ --surface-2 (about 2.7:1 light, 2.8:1 dark with the current tokens; --text-muted is 4.3:1 light, 5.7:1 dark). The
3355
+ screen-reader line is the announcer below, written when the active step or its detail changes. */
3356
+ .tool-updates-progress { flex: none; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); }
3357
+ .tool-updates-progress-head { margin-bottom: 8px; color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.45; }
3358
+ .tool-updates-progress-lost { margin: -4px 0 8px; color: var(--warn); font-size: 11px; line-height: 1.4; }
3359
+ .tool-updates-progress-hint { margin-top: 8px; color: var(--text-muted); font-size: 11px; line-height: 1.4; }
3360
+ .tool-updates-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
3361
+ .tool-updates-step { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; column-gap: 8px; row-gap: 1px; align-items: baseline; font-size: 12px; line-height: 17px; }
3362
+ .tool-updates-step-mark { grid-column: 1; grid-row: 1; align-self: start; height: 17px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; line-height: 1; }
3363
+ .tool-updates-step-label { grid-column: 2; grid-row: 1; color: var(--text); overflow-wrap: anywhere; }
3364
+ .tool-updates-step-clock { grid-column: 3; grid-row: 1; min-width: 7ch; text-align: right; color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: default; }
3365
+ .tool-updates-step-detail { grid-column: 2 / -1; grid-row: 2; color: var(--text-muted); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
3366
+ .tool-updates-step[data-state="waiting"] .tool-updates-step-label { color: var(--text-muted); }
3367
+ .tool-updates-step[data-state="active"] .tool-updates-step-label { font-weight: 600; }
3368
+ .tool-updates-step[data-state="problem"] .tool-updates-step-detail { color: var(--text); }
3369
+ .tool-updates-step[data-state="done"] .tool-updates-step-mark { color: var(--ok); }
3370
+ .tool-updates-step[data-state="problem"] .tool-updates-step-mark { color: var(--warn); }
3371
+ .tool-updates-step[data-state="active"] .tool-updates-step-mark::before,
3372
+ .tool-updates-step[data-state="waiting"] .tool-updates-step-mark::before { content: ""; box-sizing: border-box; width: 7px; height: 7px; border-radius: 50%; }
3373
+ .tool-updates-step[data-state="active"] .tool-updates-step-mark::before { background: var(--accent); animation: aware-update-pulse 1.2s ease-in-out infinite; }
3374
+ .tool-updates-step[data-state="waiting"] .tool-updates-step-mark::before { border: 1.5px solid var(--text-dim); }
3375
+ @media (prefers-reduced-motion: reduce) {
3376
+ .tool-updates-step[data-state="active"] .tool-updates-step-mark::before { animation: none; }
3377
+ }
3378
+ /* Visually hidden, still announced: the step the check is on, written by tool-updates.js only when it changes. */
3379
+ .tool-updates-announce { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
3380
+ /* While a check runs the footer's "last checked", "last downloads" and cleanup lines describe the PREVIOUS check and
3381
+ compete with the live steps; they come back, fresh, when it ends. The approve note stays: the offers it explains
3382
+ are still on screen, and in a background check Approve is still enabled. */
3383
+ #tool-updates-modal[data-checking] .tool-updates-downloads { display: none; }
3384
+ .tool-updates-foot { flex: none; margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
3248
3385
  .tool-updates-foot:empty { margin-top: 0; }
3249
3386
  .tool-updates-downloads { color: var(--text-dim); font-size: 10.5px; line-height: 1.4; }
3250
3387
  .tool-updates-note { color: var(--text-muted); font-size: 11px; line-height: 1.5; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--border); }
@@ -3328,6 +3465,16 @@
3328
3465
  .rtn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
3329
3466
  .rtn-link:hover { color: var(--accent-bright); }
3330
3467
  .rtn-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
3468
+ /* #2062: routines run only while FloLess is running — said in the Routines list and the editor. */
3469
+ .rtn-local-note { margin: -4px 0 12px; font-size: 11.5px; color: var(--text-dim); line-height: 1.55; }
3470
+ .rtn-local-hint { margin: 2px 0 12px; }
3471
+ /* The ≡ menu's Start on startup row, pointed at from Routines: a brief accent ring, then nothing. */
3472
+ .menu-startup.is-pointed { animation: menu-startup-point 1.6s ease-out 1; border-radius: 6px; }
3473
+ @keyframes menu-startup-point {
3474
+ 0%, 60% { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-soft, transparent); }
3475
+ 100% { box-shadow: inset 0 0 0 1.5px transparent; background: transparent; }
3476
+ }
3477
+ @media (prefers-reduced-motion: reduce) { .menu-startup.is-pointed { animation: none; box-shadow: inset 0 0 0 1.5px var(--accent); } }
3331
3478
  .rtn-cron-hint code { font-family: var(--mono); color: var(--text-muted); background: var(--surface-2); padding: 0 3px; border-radius: 3px; }
3332
3479
  .rtn-enabled-field { margin-top: 6px; margin-bottom: 0; }
3333
3480
  #rtn-inputs .modal-field:last-child { margin-bottom: 0; }
@@ -4641,10 +4788,11 @@ body {
4641
4788
  .report-nav *::-webkit-scrollbar { width: 8px; height: 8px; }
4642
4789
  .report-nav *::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
4643
4790
  .report-nav *::-webkit-scrollbar-track { background: var(--surface-2); }
4644
- .report-stage { position: relative; flex: 1; background: #0f172a; }
4791
+ /* #2144: the empty stage and the frame behind a report follow the theme (the report's own page paints itself). */
4792
+ .report-stage { position: relative; flex: 1; background: var(--bg); }
4645
4793
  /* Only the SHOWN frame fills the stage — `:not([hidden])` so `display:block` never defeats the
4646
4794
  `hidden` attribute on the inactive frame (else it keeps its height and pushes the other off-screen). */
4647
- #report-frame:not([hidden]), #report-frame-3d:not([hidden]) { width: 100%; height: 100%; border: 0; display: block; background: #0f172a; }
4795
+ #report-frame:not([hidden]), #report-frame-3d:not([hidden]) { width: 100%; height: 100%; border: 0; display: block; background: var(--bg); }
4648
4796
 
4649
4797
  /* Live "On trigger" report: a pulsing pip in the viewer subtitle + a brief edge
4650
4798
  flash on the stage when a trigger routine (e.g. tekla-selection-report) pushes a
@@ -4668,7 +4816,7 @@ body {
4668
4816
  }
4669
4817
  .report-overlay {
4670
4818
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
4671
- flex-direction: column; gap: 12px; background: rgba(7, 10, 15, 0.82);
4819
+ flex-direction: column; gap: 12px; background: color-mix(in srgb, var(--bg) 82%, transparent);
4672
4820
  color: var(--text-muted); font-size: 13px;
4673
4821
  }
4674
4822
  /* `display:flex` above overrides the UA `[hidden]{display:none}`, so without this
@@ -4680,6 +4828,16 @@ body {
4680
4828
  border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite;
4681
4829
  }
4682
4830
  @keyframes spin { to { transform: rotate(360deg); } }
4831
+ /* Flo (#2079): web/flo-avatar.js draws it from these, read off the canvas, so Flo is only ever the theme's own
4832
+ tokens. The ring is see-through: whatever the surface is shows inside it. */
4833
+ .flo-avatar {
4834
+ display: block; flex: none;
4835
+ --flo-line: var(--accent); --flo-fill: transparent;
4836
+ --flo-hat: var(--text); --flo-hat-line: var(--text); --flo-pulse: var(--text);
4837
+ }
4838
+ [data-theme="light"] .flo-avatar { --flo-hat: var(--surface); --flo-hat-line: var(--accent); --flo-pulse: var(--accent-dim); }
4839
+ .run-fail-card .cred-fail-status { gap: 10px; }
4840
+ .cred-fail-icon.run-fail-flo { display: inline-flex; }
4683
4841
  /* Stop the in-flight run — the escape hatch when a host hangs. Reads as a quiet
4684
4842
  destructive action: warn-tinted outline that fills on hover, never a primary. */
4685
4843
  .report-overlay .overlay-stop {
@@ -5604,16 +5762,20 @@ body {
5604
5762
  .app.has-instructor.has-whats-new { grid-template-rows: auto 1fr auto auto 44px; }
5605
5763
  .app.has-whats-new { grid-template-rows: auto 1fr auto 44px; }
5606
5764
  /* Keep mobile F1 guidance inside the dialog's focus and scroll area. */
5607
- body:has(#graft-modal.show) .app.has-instructor #instructor {
5765
+ body:has(#graft-modal.show) .app.has-instructor #instructor,
5766
+ body:has(#workspace-root-modal.show) .app.has-instructor #instructor {
5608
5767
  z-index: auto;
5609
5768
  }
5610
- body:has(.app.has-instructor) #graft-modal.show {
5769
+ body:has(.app.has-instructor) #graft-modal.show,
5770
+ body:has(.app.has-instructor) #workspace-root-modal.show {
5611
5771
  padding-bottom: 0;
5612
5772
  }
5613
- body:has(.app.has-instructor) #graft-modal.show .modal.graft {
5773
+ body:has(.app.has-instructor) #graft-modal.show .modal.graft,
5774
+ body:has(.app.has-instructor) #workspace-root-modal.show .modal.workspace-root-modal {
5614
5775
  max-height: calc(100dvh - 32px);
5615
5776
  }
5616
- #graft-instructor-note:not([hidden]) {
5777
+ #graft-instructor-note:not([hidden]),
5778
+ #workspace-root-instructor-note:not([hidden]) {
5617
5779
  display: block;
5618
5780
  flex: none;
5619
5781
  min-height: 0;
@@ -5631,12 +5793,18 @@ body {
5631
5793
  scrollbar-width: thin;
5632
5794
  scrollbar-color: var(--text-dim) transparent;
5633
5795
  }
5634
- #graft-instructor-note::-webkit-scrollbar { width: 7px; }
5635
- #graft-instructor-note::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 7px; }
5636
- #graft-instructor-note::-webkit-scrollbar-track { background: transparent; }
5637
- #graft-instructor-note:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
5638
- #graft-instructor-note .ix-chip { display: inline-block; margin-bottom: 4px; }
5639
- #graft-instructor-note .graft-instructor-parts { overflow-wrap: anywhere; }
5796
+ #graft-instructor-note::-webkit-scrollbar,
5797
+ #workspace-root-instructor-note::-webkit-scrollbar { width: 7px; }
5798
+ #graft-instructor-note::-webkit-scrollbar-thumb,
5799
+ #workspace-root-instructor-note::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 7px; }
5800
+ #graft-instructor-note::-webkit-scrollbar-track,
5801
+ #workspace-root-instructor-note::-webkit-scrollbar-track { background: transparent; }
5802
+ #graft-instructor-note:focus-visible,
5803
+ #workspace-root-instructor-note:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
5804
+ #graft-instructor-note .ix-chip,
5805
+ #workspace-root-instructor-note .ix-chip { display: inline-block; margin-bottom: 4px; }
5806
+ #graft-instructor-note .graft-instructor-parts,
5807
+ #workspace-root-instructor-note .workspace-root-instructor-parts { overflow-wrap: anywhere; }
5640
5808
  header { flex-wrap: wrap; gap: 8px; padding: 8px 14px; }
5641
5809
  select, .wf-combo { min-width: 0; }
5642
5810
  }
@@ -5895,6 +6063,21 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
5895
6063
  .ws-create-grid { display:grid; gap:14px; grid-template-columns:var(--ws-landing-track);
5896
6064
  align-content:start; align-items:stretch; margin-bottom:14px; }
5897
6065
  .ws-grid { display:grid; gap:14px; grid-template-columns:var(--ws-landing-track); align-content:start; }
6066
+ .ws-project-section { margin-top:22px; }
6067
+ .ws-project-heading { display:flex; align-items:baseline; gap:9px; margin:0 0 10px;
6068
+ font-size:13px; font-weight:600; color:var(--text); }
6069
+ .ws-grid[hidden] { display:none; }
6070
+ .ws-project-group-toggle { appearance:none; width:100%; display:flex; flex-wrap:wrap; align-items:center;
6071
+ gap:9px; min-height:40px; padding:6px 0; border:0; background:transparent; color:var(--text);
6072
+ font:inherit; text-align:left; cursor:pointer; }
6073
+ .ws-project-group-toggle:hover { color:var(--accent-bright); }
6074
+ .ws-project-group-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:3px; border-radius:4px; }
6075
+ .ws-project-group-label { min-width:0; overflow-wrap:anywhere; }
6076
+ .ws-project-group-toggle .ws-project-count { flex-shrink:0; white-space:nowrap; }
6077
+ .ws-project-chevron { flex-shrink:0; font-size:18px; line-height:1; transform:rotate(90deg); }
6078
+ .ws-project-group-toggle[aria-expanded="false"] .ws-project-chevron { transform:none; }
6079
+ .ws-project-count { font-family:var(--mono); font-size:11px; font-weight:400;
6080
+ letter-spacing:0; color:var(--text-muted); }
5898
6081
  .ws-card { background:var(--surface); border:1px solid var(--border); border-radius:8px; overflow:hidden;
5899
6082
  cursor:pointer; transition:all .15s; text-align:left; padding:0; display:flex; flex-direction:column; }
5900
6083
  .ws-card:hover { border-color:var(--accent-dim); transform:translateY(-1px); }
@@ -6138,6 +6321,9 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
6138
6321
  dim, because it is the answer to what was just typed; collapsed while empty. */
6139
6322
  .ws-empty-note.ws-search-empty { color:var(--text-muted); overflow-wrap:anywhere; }
6140
6323
  .ws-empty-note.ws-search-empty:empty { margin:0; }
6324
+ /* C12 (#1337): the unreadable-workflows notice sits between the create card and the workflow cards. */
6325
+ /* Body text in --text, not the banner's --text-muted: muted on --surface-2 is under 4.5:1 in the light theme. */
6326
+ .ws-empty-note.ws-load-error.wf-unreadable { margin:14px 0; color:var(--text); }
6141
6327
  .ws-search-empty button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:2px; }
6142
6328
 
6143
6329
  /* open project */
@@ -7297,6 +7483,11 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
7297
7483
  .ag-link { background:none; border:none; color:var(--accent-bright); font:inherit; font-size:12px; cursor:pointer; padding:0;
7298
7484
  text-decoration:underline; text-underline-offset:2px; }
7299
7485
  .ag-link:hover { color:var(--accent); }
7486
+ /* #2061: the Run sheet's busy-project ask. "Stop it" is the quiet warn-coloured last choice, never the default. */
7487
+ .ag-run-busy-actions { display:inline-flex; flex-wrap:wrap; gap:10px; margin-left:4px; }
7488
+ .ag-link.ag-link-warn { color:var(--warn); }
7489
+ .ag-link.ag-link-warn:hover { color:var(--text); }
7490
+ .ag-link:disabled { opacity:.6; cursor:default; }
7300
7491
 
7301
7492
  .ag-section { padding:14px 0 6px; }
7302
7493
  .ag-label { display:block; font-size:12.5px; font-weight:600; color:var(--text); }
@@ -7383,6 +7574,11 @@ body.mode-agents #menu .menu-item[data-action="bake"] { display:none; }
7383
7574
  /* #2046 — the Guide's question (web/guide.js). Built on .modal; the body is the one scroll region and the buttons never
7384
7575
  scroll away. The preview has its own themed inner scroll. Existing tokens only, both themes. */
7385
7576
  #guide-agent-modal .guide-dialog { width: 580px; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; }
7577
+ /* #2140: Flo beside the title (the Guide introducing itself); the title keeps its own focus ring and wording. */
7578
+ #guide-agent-modal .guide-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
7579
+ #guide-agent-modal .guide-head .modal-title { margin-bottom: 0; }
7580
+ #guide-agent-modal .guide-flo { flex: none; display: inline-flex; }
7581
+ #guide-agent-modal .guide-flo:empty { display: none; }
7386
7582
  #guide-agent-modal .modal-title:focus { outline: none; }
7387
7583
  #guide-agent-modal .modal-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
7388
7584
  .guide-body, .guide-preview-scroll {
package/dist/web/app.js CHANGED
@@ -1422,14 +1422,45 @@ const $startupToggle = document.getElementById('startup-toggle');
1422
1422
  async function refreshStartup() {
1423
1423
  try {
1424
1424
  const r = await fetch('/api/autostart');
1425
- if (!r.ok) { if ($startupRow) $startupRow.hidden = true; return; }
1425
+ if (!r.ok) { if ($startupRow) $startupRow.hidden = true; showStartOnLoginLinks(false); return; }
1426
1426
  const d = await r.json();
1427
1427
  const supported = !!d.supported;
1428
1428
  if ($startupRow) $startupRow.hidden = !supported;
1429
1429
  if (supported && $startupToggle) $startupToggle.checked = !!d.enabled;
1430
- } catch { if ($startupRow) $startupRow.hidden = true; }
1430
+ showStartOnLoginLinks(supported);
1431
+ } catch { if ($startupRow) $startupRow.hidden = true; showStartOnLoginLinks(false); }
1431
1432
  }
1432
1433
 
1434
+ // #2062: Routines run only while FloLess is running, so their dialogs point to this setting. The links follow the
1435
+ // row: shown only where the setting exists (hide, never a dead control).
1436
+ function showStartOnLoginLinks(supported) {
1437
+ document.querySelectorAll('[data-start-on-login-link], [data-start-on-login-hint]').forEach((node) => { node.hidden = !supported; });
1438
+ }
1439
+
1440
+ /** #2062: close whatever dialog asked, open the ≡ menu and put focus on the start-on-login switch. */
1441
+ async function revealStartOnLogin() {
1442
+ // Read the setting first: if it has gone (or can't be read), say so and leave Routines open.
1443
+ await refreshStartup();
1444
+ if (!$startupRow || $startupRow.hidden || !$startupToggle) {
1445
+ showToast('Start on startup isn’t available on this computer right now, so FloLess runs routines only while you keep it open.', 'warn');
1446
+ return;
1447
+ }
1448
+ // Only the Routines list carries the link (the editor would drop a routine being written).
1449
+ document.getElementById('routines-modal')?.classList.remove('show');
1450
+ toggleMenu(true);
1451
+ $startupRow.classList.remove('is-pointed');
1452
+ void $startupRow.offsetWidth; // re-arm the highlight on a repeat
1453
+ $startupRow.classList.add('is-pointed');
1454
+ $startupToggle.focus({ preventScroll: false });
1455
+ }
1456
+ document.addEventListener('click', (event) => {
1457
+ const link = event.target.closest?.('[data-start-on-login-link]');
1458
+ if (!link) return;
1459
+ event.preventDefault();
1460
+ event.stopPropagation(); // the document handler above would close the menu this opens
1461
+ void revealStartOnLogin();
1462
+ }, true);
1463
+
1433
1464
  if ($startupToggle) {
1434
1465
  $startupToggle.addEventListener('change', async () => {
1435
1466
  const want = $startupToggle.checked;
@@ -1703,10 +1734,20 @@ document.getElementById('zoom-reset').onclick = () => { resetView(); autoFit = f
1703
1734
  const $zoomFit = document.getElementById('zoom-fit');
1704
1735
  if ($zoomFit) $zoomFit.onclick = () => { fitToScreen(); autoFit = true; };
1705
1736
 
1737
+ // The canvas also hosts project, library and Agents pages. Only the visible workflow
1738
+ // graph owns pan/zoom gestures; other surfaces keep native focus, selection and scrolling.
1739
+ const $canvasEl = document.querySelector('.canvas');
1740
+ function workflowCanvasGesture(target) {
1741
+ if ($app.classList.contains('mode-workspaces') || $app.classList.contains('mode-agents')
1742
+ || document.body.classList.contains('wf-landing-open') || document.body.classList.contains('wf-draft-open')
1743
+ || $canvasEl.classList.contains('view-dashboard') || !$topology.getClientRects().length) return false;
1744
+ return !target?.closest?.('#ws-landing, #ws-project, #wf-landing, #wf-draft, #agents-surface, .dashboard');
1745
+ }
1746
+
1706
1747
  // Ctrl/Cmd + scroll wheel = zoom on canvas (skips OS-level browser zoom)
1707
1748
  let zoomAccum = 0;
1708
1749
  document.querySelector('.canvas').addEventListener('wheel', (e) => {
1709
- if (!e.ctrlKey && !e.metaKey) return;
1750
+ if ((!e.ctrlKey && !e.metaKey) || !workflowCanvasGesture(e.target)) return;
1710
1751
  e.preventDefault();
1711
1752
  zoomAccum += e.deltaY;
1712
1753
  if (Math.abs(zoomAccum) >= 40) {
@@ -1718,7 +1759,6 @@ document.querySelector('.canvas').addEventListener('wheel', (e) => {
1718
1759
  // Middle-mouse drag = pan the (possibly zoomed) canvas. preventDefault on the middle
1719
1760
  // button suppresses Windows' autoscroll bubble; the offset is screen-px (1:1 with the
1720
1761
  // cursor) because translate sits OUTSIDE the scale in the transform list.
1721
- const $canvasEl = document.querySelector('.canvas');
1722
1762
  let panning = false, panFromX = 0, panFromY = 0, panBaseX = 0, panBaseY = 0;
1723
1763
  function startPan(e) {
1724
1764
  panning = true;
@@ -1728,7 +1768,7 @@ function startPan(e) {
1728
1768
  }
1729
1769
  // Middle-mouse drag anywhere on the canvas pans (the classic gesture).
1730
1770
  $canvasEl.addEventListener('mousedown', (e) => {
1731
- if (e.button !== 1) return;
1771
+ if (e.button !== 1 || !workflowCanvasGesture(e.target)) return;
1732
1772
  e.preventDefault();
1733
1773
  startPan(e);
1734
1774
  });
@@ -1741,7 +1781,7 @@ $canvasEl.addEventListener('mousedown', (e) => {
1741
1781
  // `.dashboard` (the custom-panels view that replaces the topology) is excluded too — it has
1742
1782
  // its own scroll/click surface and the topology it would pan is hidden in that view.
1743
1783
  $canvasEl.addEventListener('mousedown', (e) => {
1744
- if (e.button !== 0 || e.target.closest('.agent-card, .canvas-toolbar, .fav-bar, .find-overlay, .dashboard')) return;
1784
+ if (e.button !== 0 || !workflowCanvasGesture(e.target) || e.target.closest('.agent-card, .canvas-toolbar, .fav-bar, .find-overlay, .dashboard, input, textarea, select, button, [contenteditable]')) return;
1745
1785
  e.preventDefault();
1746
1786
  startPan(e);
1747
1787
  });
@@ -1757,7 +1797,7 @@ window.addEventListener('mouseup', () => {
1757
1797
  panning = false;
1758
1798
  $canvasEl.classList.remove('panning');
1759
1799
  });
1760
- $canvasEl.addEventListener('auxclick', (e) => { if (e.button === 1) e.preventDefault(); });
1800
+ $canvasEl.addEventListener('auxclick', (e) => { if (e.button === 1 && workflowCanvasGesture(e.target)) e.preventDefault(); });
1761
1801
 
1762
1802
  // ----- Touch: one-finger pan + two-finger pinch-zoom (phones). The mouse handlers above are
1763
1803
  // untouched (touch events never fire from a mouse), so desktop is unaffected. touch-action:none
@@ -1765,13 +1805,14 @@ $canvasEl.addEventListener('auxclick', (e) => { if (e.button === 1) e.preventDef
1765
1805
  let tPan = false, tPinch = false, tFromX = 0, tFromY = 0, tBaseX = 0, tBaseY = 0, pinchDist0 = 0, pinchZoom0 = 1;
1766
1806
  const pinchSpan = (ts) => Math.hypot(ts[0].clientX - ts[1].clientX, ts[0].clientY - ts[1].clientY);
1767
1807
  $canvasEl.addEventListener('touchstart', (e) => {
1808
+ if (!workflowCanvasGesture(e.target)) return;
1768
1809
  if (e.touches.length === 2) {
1769
1810
  e.preventDefault();
1770
1811
  tPinch = true; tPan = false;
1771
1812
  pinchDist0 = pinchSpan(e.touches) || 1; pinchZoom0 = zoom;
1772
1813
  } else if (e.touches.length === 1) {
1773
1814
  // Let taps on interactive chrome through (node select, zoom toolbar, fav-bar, find, dashboard).
1774
- if (e.target.closest('.agent-card, .canvas-toolbar, .fav-bar, .find-overlay, .dashboard')) return;
1815
+ if (e.target.closest('.agent-card, .canvas-toolbar, .fav-bar, .find-overlay, .dashboard, input, textarea, select, button, [contenteditable]')) return;
1775
1816
  e.preventDefault();
1776
1817
  tPan = true; tPinch = false;
1777
1818
  tFromX = e.touches[0].clientX; tFromY = e.touches[0].clientY;
@@ -1876,6 +1917,10 @@ function setWorkspaceRootError(message) {
1876
1917
 
1877
1918
  function workspaceRootErrorMessage(error) {
1878
1919
  const raw = String(error && error.message || error || 'Could not use that folder.');
1920
+ const uncheckedProjects = "FloLess can't switch to this folder yet. It contains projects, and another saved directory can't be checked right now, so FloLess can't confirm those projects aren't already saved there. For now, cancel this review and choose an empty Workspace directory. You can switch to this folder once every other saved directory is available or stopped.";
1921
+ if (raw === 'You stopped using this directory. Restore its registration under Saved directories, then switch to it.'
1922
+ || /^This folder is inside or contains .+, a directory you stopped using\. FloLess still reserves it so projects stay unique\. Choose a folder outside this saved directory\.$/.test(raw)
1923
+ || raw === uncheckedProjects || raw === `Nothing was changed. ${uncheckedProjects}`) return raw;
1879
1924
  if (/folders? may not contain one another/i.test(raw)) {
1880
1925
  return 'Choose a different folder. A Workspace directory cannot be inside another FloLess Workspace directory.';
1881
1926
  }