@bivy/bivy 0.18.11-staging.14 → 0.18.11-staging.15

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 (2) hide show
  1. package/dist/server.js +11 -1
  2. package/package.json +1 -1
package/dist/server.js CHANGED
@@ -5357,6 +5357,13 @@ async function delegationAnswer(sessionId) {
5357
5357
  }
5358
5358
  return undefined;
5359
5359
  }
5360
+ /** A delegated task's first line, bounded, as its child session's title. */
5361
+ function delegatedSessionTitle(instructions) {
5362
+ const line = instructions?.split(/\r?\n/).map((l) => l.trim()).find(Boolean);
5363
+ if (!line)
5364
+ return undefined;
5365
+ return line.length > 80 ? `${line.slice(0, 79).trimEnd()}…` : line;
5366
+ }
5360
5367
  /** Text of the most recent user message in a session's transcript, if any. */
5361
5368
  function lastUserMessageText(record) {
5362
5369
  const messages = record.session.getMessages();
@@ -5586,7 +5593,10 @@ async function executeWorkItem(item, report, signal) {
5586
5593
  // sends after the Run is mistaken for the Session's first naming prompt (the
5587
5594
  // internal Run turn does not pass through the interactive prompt handler), so
5588
5595
  // rows named after the Run suddenly become "status", "continue", etc.
5589
- sessionNamer.setSessionName(record, item.title);
5596
+ // A delegated child's queue title is generic ("Delegated Run": the task is
5597
+ // sealed, the queue never sees it). Name it after the task itself, which
5598
+ // only this machine can read, so it's recognizable in the session list.
5599
+ sessionNamer.setSessionName(record, delegatedProvenance ? delegatedSessionTitle(item.body) ?? item.title : item.title);
5590
5600
  persistSessionMetadata(record);
5591
5601
  if (item.model) {
5592
5602
  await applyRequestedModel(record, { provider: "", id: item.model });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bivy/bivy",
3
- "version": "0.18.11-staging.14",
3
+ "version": "0.18.11-staging.15",
4
4
  "type": "module",
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "Run coding agents on machines you own. Open-source, self-hostable agent workspace.",