pi-pocket 0.28.0 → 0.28.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/web/style.css CHANGED
@@ -10095,6 +10095,7 @@ textarea.notes {
10095
10095
  trust) and for a watch that had to stop. */
10096
10096
  .driver-bar,
10097
10097
  .plan-bar,
10098
+ .held-bar,
10098
10099
  .goal-bar,
10099
10100
  .watch-bar,
10100
10101
  .trust-bar,
@@ -10115,6 +10116,7 @@ textarea.notes {
10115
10116
 
10116
10117
  .driver-bar::before,
10117
10118
  .plan-bar::before,
10119
+ .held-bar::before,
10118
10120
  .goal-bar::before,
10119
10121
  .watch-bar::before,
10120
10122
  .trust-bar::before,
@@ -10151,6 +10153,41 @@ textarea.notes {
10151
10153
  margin-left: auto;
10152
10154
  }
10153
10155
 
10156
+ /* Messages a Stop held: their words, then Show and Send; the list under them scrolls past a few rows. */
10157
+ .held-bar {
10158
+ --tone: var(--accent);
10159
+ }
10160
+
10161
+ .held-bar > .grow {
10162
+ flex: 1 1 14rem;
10163
+ }
10164
+
10165
+ .held-bar > .link {
10166
+ margin-left: auto;
10167
+ }
10168
+
10169
+ .held-list {
10170
+ flex-basis: 100%;
10171
+ display: flex;
10172
+ flex-direction: column;
10173
+ gap: 6px;
10174
+ max-height: min(24vh, 10rem);
10175
+ overflow-y: auto;
10176
+ overscroll-behavior: contain;
10177
+ /* Room for a ×'s larger touch area, which would make the list scroll for 4 px. */
10178
+ padding-block: 4px;
10179
+ margin-block: -4px;
10180
+ }
10181
+
10182
+ .held-list > .queued > .link {
10183
+ flex: none;
10184
+ }
10185
+
10186
+ /* Words, not a button as in the queue: on the row's middle line, as its label is. */
10187
+ .held-list .queued-text {
10188
+ align-self: center;
10189
+ }
10190
+
10154
10191
  /* Trust choices keep the three existing decisions, with a selected radio and soft accent card. */
10155
10192
  .trust-choice {
10156
10193
  justify-content: flex-start;
package/web/transcript.js CHANGED
@@ -4074,6 +4074,15 @@ export function Transcript() {
4074
4074
  const { sessions, sessionsLoaded } = store.state;
4075
4075
  const source =
4076
4076
  conversation.forkedFrom && sessions.find((each) => each.id === conversation.forkedFrom.id);
4077
+ // The last run failed with no answer that says so (its compaction failed, say): the line stays until a run starts.
4078
+ // A failed answer after the newest message says it under itself already.
4079
+ const said =
4080
+ entries.findLast((entry) => entry?.kind === "assistant" || entry?.kind === "user")
4081
+ ?.stopReason === "error";
4082
+ const failure =
4083
+ busy || said
4084
+ ? undefined
4085
+ : sessions.find((each) => each.id === conversation.id && each.failed === true)?.failure;
4077
4086
 
4078
4087
  return html`<main class="scroller" ref=${scroller} onScroll=${onScroll}>
4079
4088
  <div
@@ -4131,6 +4140,12 @@ export function Transcript() {
4131
4140
  ${approvals.map(
4132
4141
  (approval) => html`<${ApprovalCard} key=${approval.id} approval=${approval} />`,
4133
4142
  )}
4143
+ ${
4144
+ failure &&
4145
+ html`<div class="error-box run-failure" data-part="run-failure" role="alert">
4146
+ Run failed: ${failure}
4147
+ </div>`
4148
+ }
4134
4149
  ${
4135
4150
  (busy || compacting) &&
4136
4151
  html`<${LiveLine}