copilot-operator 0.1.94 → 0.1.97

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 (71) hide show
  1. package/dist/src/api/apiLock.js +82 -0
  2. package/dist/src/api/main.js +5 -0
  3. package/dist/src/api/operator.controller.js +23 -5
  4. package/dist/src/api/operator.service.js +518 -83
  5. package/dist/src/api/server.js +10 -0
  6. package/dist/src/config/exportHome.js +1 -1
  7. package/dist/src/config/live.js +12 -12
  8. package/dist/src/config/schema.js +13 -0
  9. package/dist/src/exec/policy.js +9 -18
  10. package/dist/src/orchestrator/kerriganRunner.js +11 -4
  11. package/dist/src/orchestrator/leadRunner.js +76 -23
  12. package/dist/src/orchestrator/review.js +6 -2
  13. package/dist/src/orchestrator/subtaskRetry.js +2 -1
  14. package/dist/src/orchestrator/taskRunner.js +75 -16
  15. package/dist/src/plan/kerrigan.js +4 -4
  16. package/dist/src/plan/systemGuide.js +36 -36
  17. package/dist/src/queue/queue.js +19 -0
  18. package/dist/src/queue/queueBranch.js +34 -9
  19. package/dist/src/session/locatorFailures.js +10 -11
  20. package/dist/src/session/model.js +4 -0
  21. package/dist/src/session/store.js +56 -0
  22. package/dist/src/session/workspace.js +3 -2
  23. package/dist/src/transport/copilotTransport.js +83 -68
  24. package/dist/src/transport/keptWindow.js +17 -14
  25. package/dist/src/vcs/newBranch.js +28 -0
  26. package/dist/src/vcs/operatorGit.js +9 -10
  27. package/dist/src/vcs/referenceGuard.js +16 -2
  28. package/dist/web/404.html +2 -2
  29. package/dist/web/_next/static/chunks/1024-c0eee3ec374816d1.js +1 -0
  30. package/dist/web/_next/static/chunks/1077.4da389906036b1bb.js +1 -0
  31. package/dist/web/_next/static/chunks/1548.4aa3e42afe4542ab.js +1 -0
  32. package/dist/web/_next/static/chunks/2163.4c6ce20cf967756c.js +1 -0
  33. package/dist/web/_next/static/chunks/714.ffb1325246519f64.js +1 -0
  34. package/dist/web/_next/static/chunks/7220.f483b83c11525063.js +1 -0
  35. package/dist/web/_next/static/chunks/7921-946e538fe3f9630f.js +1 -0
  36. package/dist/web/_next/static/chunks/8124-967df691ec1bfeeb.js +1 -0
  37. package/dist/web/_next/static/chunks/8584.3301b056c97be517.js +1 -0
  38. package/dist/web/_next/static/chunks/9067.03cdfb01ebf6a35d.js +1 -0
  39. package/dist/web/_next/static/chunks/9747.fe06238bc42bd23d.js +1 -0
  40. package/dist/web/_next/static/chunks/app/{layout-1b7d13f7b2efd008.js → layout-7943a4391ad2f88f.js} +1 -1
  41. package/dist/web/_next/static/chunks/app/page-6ec948e0cf4b24f0.js +1 -0
  42. package/dist/web/_next/static/chunks/app/queue/page-9cfc8f78d536cfb6.js +1 -0
  43. package/dist/web/_next/static/chunks/app/settings/page-9c2b961beb8b3dce.js +1 -0
  44. package/dist/web/_next/static/chunks/{webpack-91b2de9c3da6f8b9.js → webpack-710628d673fa4afb.js} +1 -1
  45. package/dist/web/defaults.html +2 -2
  46. package/dist/web/defaults.txt +7 -7
  47. package/dist/web/index.html +3 -3
  48. package/dist/web/index.txt +8 -8
  49. package/dist/web/queue.html +2 -2
  50. package/dist/web/queue.txt +8 -8
  51. package/dist/web/settings.html +2 -2
  52. package/dist/web/settings.txt +8 -8
  53. package/dist/web/system.html +2 -2
  54. package/dist/web/system.txt +8 -8
  55. package/package.json +1 -1
  56. package/dist/web/_next/static/chunks/1024-dee283a1ddf295bf.js +0 -1
  57. package/dist/web/_next/static/chunks/1077.b7df9cb8ca810075.js +0 -1
  58. package/dist/web/_next/static/chunks/1548.417c17b63c371f00.js +0 -1
  59. package/dist/web/_next/static/chunks/2163.469367b8fbcc862d.js +0 -1
  60. package/dist/web/_next/static/chunks/714.72112704f3cb8127.js +0 -1
  61. package/dist/web/_next/static/chunks/7220.8bd897c7ddfee701.js +0 -1
  62. package/dist/web/_next/static/chunks/7921-25d1755799107ea7.js +0 -1
  63. package/dist/web/_next/static/chunks/8124-1dba8babfcfbc6e2.js +0 -1
  64. package/dist/web/_next/static/chunks/8584.f87df7324303ab75.js +0 -1
  65. package/dist/web/_next/static/chunks/9067.67a7c7cf3b019b5c.js +0 -1
  66. package/dist/web/_next/static/chunks/9747.a87dbd4acd45e39d.js +0 -1
  67. package/dist/web/_next/static/chunks/app/page-7eae1e8848525e1d.js +0 -1
  68. package/dist/web/_next/static/chunks/app/queue/page-7909ba7c9e3d4c2d.js +0 -1
  69. package/dist/web/_next/static/chunks/app/settings/page-c92548f9c6318962.js +0 -1
  70. /package/dist/web/_next/static/{UNygvDtRnBVZrGJt53IE4 → D3ew46wEw5JXPsTVwZwFC}/_buildManifest.js +0 -0
  71. /package/dist/web/_next/static/{UNygvDtRnBVZrGJt53IE4 → D3ew46wEw5JXPsTVwZwFC}/_ssgManifest.js +0 -0
@@ -457,7 +457,11 @@ export function speakFor(transport, sessionId, opts = {}) {
457
457
  speaker.alone = true;
458
458
  }
459
459
  /** The settings a window open takes at once (`takeSettings`): its locators and the steps on the way to the chat. */
460
- const WINDOW_NOW = new Set(['copilot.pickerLocators', 'copilot.chatLocators', 'copilot.pickerSteps', 'copilot.builtInSteps', 'copilot.extraSteps']);
460
+ const WINDOW_NOW = new Set([
461
+ 'copilot.pickerLocators', 'copilot.chatLocators', 'copilot.pickerSteps', 'copilot.builtInSteps', 'copilot.extraSteps',
462
+ // The window's waits (2026-11-18), which the window kept open between messages went on with for days.
463
+ 'copilot.replyTimeoutSec', 'copilot.signInTimeoutSec', 'copilot.humanWaitSec',
464
+ ]);
461
465
  /** The model menu's locators and its step pictures, as Settings have them (2026-10-24), for every window that picks a model. */
462
466
  /** The locators Settings hold for the Copilot window: the model menu's, and the chat page's own (the box to write in, 2026-11-17). */
463
467
  export function pickerOptions(cfg) {
@@ -472,11 +476,17 @@ export function pickerOptions(cfg) {
472
476
  ...(cfg.copilot.pickerSteps ? { modelStepShots: true } : {}),
473
477
  ...(switchedOff ? { builtInSteps: builtIn } : {}),
474
478
  ...(own.length > 0 ? { extraSteps: own } : {}),
479
+ // Its waits, as Settings have them now (2026-11-18): a window kept open is handed them with each message.
480
+ replyTimeoutMs: cfg.copilot.replyTimeoutSec * 1000,
481
+ signInTimeoutMs: cfg.copilot.signInTimeoutSec * 1000,
482
+ humanWaitMs: cfg.copilot.humanWaitSec * 1000,
475
483
  };
476
484
  }
477
485
  export async function openBrowser(cfg, bus, transportDir, sessionId,
478
486
  /** The run's Stop: a sign-in still awaited ends with it. */
479
- signal) {
487
+ signal,
488
+ /** The run's settings: a locator or a step fixed while the sign-in is awaited is handed to the window at once. */
489
+ live) {
480
490
  const speaker = { id: sessionId };
481
491
  const transport = createTransport({
482
492
  profileDir: cfg.resolved.profileDir,
@@ -484,9 +494,6 @@ signal) {
484
494
  chatUrl: cfg.copilot.url,
485
495
  channel: cfg.copilot.channel,
486
496
  headless: cfg.copilot.headless,
487
- replyTimeoutMs: cfg.copilot.replyTimeoutSec * 1000,
488
- signInTimeoutMs: cfg.copilot.signInTimeoutSec * 1000,
489
- humanWaitMs: cfg.copilot.humanWaitSec * 1000,
490
497
  keepFailurePage: cfg.copilot.keepFailurePage,
491
498
  ...pickerOptions(cfg),
492
499
  onEvent: (event, detail) => {
@@ -542,6 +549,11 @@ signal) {
542
549
  * or read of the models, the one the error asks for, was refused as "Edge is already running with
543
550
  * this profile" until the window was closed by hand.
544
551
  */
552
+ // Until the run has the window (`runSession` hands it what is saved from then on): bug hunt 2026-11-18.
553
+ const unlive = live?.onChange((change) => {
554
+ if (change.now.some((name) => WINDOW_NOW.has(name)))
555
+ transport.takeSettings(pickerOptions(cfg));
556
+ });
545
557
  try {
546
558
  await transport.open();
547
559
  await transport.ensureSignedIn(undefined, { signal });
@@ -552,6 +564,9 @@ signal) {
552
564
  // Closed with its X while it opened or the sign-in was awaited: a stop, not a failure to start (2026-10-19).
553
565
  throw byHand ? new WindowClosed() : e;
554
566
  }
567
+ finally {
568
+ unlive?.();
569
+ }
555
570
  return transport;
556
571
  }
557
572
  /**
@@ -719,8 +734,8 @@ export function failedOpening(e) {
719
734
  /** Whether a run failed while opening the browser or entering the conversation (see `failedOpening`). */
720
735
  export const failedWhileOpening = (e) => !!e?.openingBrowser;
721
736
  /** The old shape, kept for the terminal path: open a browser and enter the conversation. */
722
- export async function openSessionTransport(cfg, session, bus, runsDir, signal) {
723
- const transport = await openBrowser(cfg, bus, join(runsDir, '_browser'), session.id, signal);
737
+ export async function openSessionTransport(cfg, session, bus, runsDir, signal, live) {
738
+ const transport = await openBrowser(cfg, bus, join(runsDir, '_browser'), session.id, signal, live);
724
739
  /*
725
740
  * Closed on any failure to enter the conversation, not only a conversation that will not reopen: the caller has no
726
741
  * transport yet, so a page that would not load left the window open on the profile with nobody holding it.
@@ -2415,6 +2430,8 @@ export async function runTask(transport, session, task, deps) {
2415
2430
  const beforeReview = processesBefore ? await snapshotProcesses(work.cwd, processesBefore.since).catch(() => null) : null;
2416
2431
  let roundLeftovers = [];
2417
2432
  let outcome;
2433
+ /** What cut the review off, when it was not the review's own failing: the window closed, the conversation lost. */
2434
+ let reviewCut;
2418
2435
  try {
2419
2436
  await transport.newChat();
2420
2437
  if (model || (reviewByHand && deps.models?.askHelp)) {
@@ -2496,6 +2513,7 @@ export async function runTask(transport, session, task, deps) {
2496
2513
  });
2497
2514
  }
2498
2515
  catch (e) {
2516
+ reviewCut = e;
2499
2517
  outcome = { verdict: 'error', findings: [], stepsRun: 0, iterations: 0, problem: e.message };
2500
2518
  }
2501
2519
  finally {
@@ -2528,6 +2546,21 @@ export async function runTask(transport, session, task, deps) {
2528
2546
  sink.event('review-stopped', { round: reviewRounds, stepsRun: outcome.stepsRun }, `the operator stopped the run during review round ${reviewRounds}; the work is neither accepted nor sent back`, 'warn');
2529
2547
  return 'stopped';
2530
2548
  }
2549
+ /*
2550
+ * The window closed during the review and not opened again, or a conversation lost (bug hunt 2026-11-18): said as
2551
+ * the review's error, which accepts the work unreviewed, so the task ended "done" where everywhere else it ends
2552
+ * stopped, with Continue. Thrown on, for the end of the task to say it as it says it anywhere (see `runTask`).
2553
+ */
2554
+ if (transport.closedOutside() || reviewCut instanceof ChatLost || reviewCut instanceof WindowClosed) {
2555
+ await saveReview({
2556
+ verdict: 'error',
2557
+ rounds: reviewRounds,
2558
+ stepsRun: outcome.stepsRun,
2559
+ problem: `review round ${reviewRounds} was cut off: ${outcome.problem ?? 'the browser window was closed'}`,
2560
+ model: model || undefined,
2561
+ });
2562
+ throw reviewCut instanceof Error ? reviewCut : new WindowClosed(CLOSED_NOT_REOPENED);
2563
+ }
2531
2564
  /*
2532
2565
  * Which findings an earlier round already raised.
2533
2566
  *
@@ -3617,6 +3650,19 @@ export async function runTask(transport, session, task, deps) {
3617
3650
  sink.event('window-closed', { error: message, reopened: transport.reopenedTimes?.() ?? 0 }, why, 'warn');
3618
3651
  return await finish('aborted', why);
3619
3652
  }
3653
+ /*
3654
+ * The window could not be put back on its conversation (2026-11-09), nothing sent: a stop, not a failure of the work
3655
+ * (bug hunt 2026-11-18: it ended "failed", where no Continue is offered, though its own words say to continue once
3656
+ * signed in). Continue goes back to the conversation again. A fault of the means all the same, so a worker's subtask
3657
+ * that ends so may be tried again (`classifySubtaskEnd`), as any fault of the chat may.
3658
+ */
3659
+ if (e instanceof ChatLost) {
3660
+ sink.event('chat-lost', { chatId: e.chatId, found: e.found }, message, 'warn');
3661
+ await setTask((t) => {
3662
+ t.failure = { kind: 'transport', detail: message.slice(0, 400) };
3663
+ }).catch(() => undefined);
3664
+ return await finish('aborted', message);
3665
+ }
3620
3666
  sink.event('task-error', { error: message, stack: e.stack }, message, 'error');
3621
3667
  await transport.dumpFailure(log.path('failures'), 'crash').catch(() => undefined);
3622
3668
  /*
@@ -3678,6 +3724,16 @@ export async function runSession(sessionId, deps) {
3678
3724
  let lastStatus;
3679
3725
  /** Whether the queue stopped because the operator asked it to hold, rather than because it ended. */
3680
3726
  let paused = false;
3727
+ /*
3728
+ * The locators and the steps on the way to the chat, fixed in Settings while this run goes (bug hunt 2026-11-18): the
3729
+ * window takes them at once, as the notice says, whatever the run is doing — waiting for a sign-in or on the model's
3730
+ * card, or the lead or Kerrigan at their turn. Only a task at work handed them on before (`tookSettings` in
3731
+ * `runTask`); the window opened for the run is handed them while it waits for the sign-in too (`openBrowser`).
3732
+ */
3733
+ const unwindow = deps.live?.onChange((change) => {
3734
+ if (transport && change.now.some((name) => WINDOW_NOW.has(name)))
3735
+ transport.takeSettings(pickerOptions(cfg));
3736
+ }) ?? (() => undefined);
3681
3737
  try {
3682
3738
  session = await joinGroupConversation(store, session, bus);
3683
3739
  try {
@@ -3695,7 +3751,7 @@ export async function runSession(sessionId, deps) {
3695
3751
  else {
3696
3752
  await deps.beforeBrowser?.();
3697
3753
  // The chat's window outlives this message, so what it keeps goes where the batch's window keeps its own.
3698
- transport = await openSessionTransport(cfg, session, bus, deps.chatWindow ? cfg.resolved.runsDir : sessionRunsDir, deps.signal);
3754
+ transport = await openSessionTransport(cfg, session, bus, deps.chatWindow ? cfg.resolved.runsDir : sessionRunsDir, deps.signal, deps.live);
3699
3755
  if (deps.chatWindow)
3700
3756
  speakFor(transport, session.id, { alone: true });
3701
3757
  }
@@ -3735,7 +3791,8 @@ export async function runSession(sessionId, deps) {
3735
3791
  * 2026-11-13: "if I close the browser by accident, carry the task on from where it got to"), up to the times
3736
3792
  * Settings allow for one message — its runs again in a fresh chat and on its own after a limit included.
3737
3793
  */
3738
- chat.holdWindow?.(cfg.limits.reopenWindow ?? 3, deps.signal);
3794
+ // As Settings have it each time the window goes (bug hunt 2026-11-18: copied at the message's start).
3795
+ chat.holdWindow?.(() => cfg.limits.reopenWindow ?? 3, deps.signal);
3739
3796
  /*
3740
3797
  * A task taken from the queue was started by the operator, never by the retry loop below, which
3741
3798
  * runs its own. A fresh-retry mark on it is left from a retry that was queued and never ran —
@@ -3809,10 +3866,11 @@ export async function runSession(sessionId, deps) {
3809
3866
  * stopped, not one that blocked with nothing to do (that goes to a fresh chat below, then to a person),
3810
3867
  * and not when a pause or Stop was asked for.
3811
3868
  */
3812
- const autoAllowed = Math.max(0, cfg.limits.autoContinue ?? 0);
3869
+ // As Settings have it each time (bug hunt 2026-11-18: copied once, though Settings say limits count at once).
3870
+ const autoAllowed = () => Math.max(0, cfg.limits.autoContinue ?? 0);
3813
3871
  let autoContinued = 0;
3814
3872
  const carriedOnAtOnce = async () => {
3815
- if (autoContinued >= autoAllowed || deps.signal?.aborted || deps.shouldPause?.())
3873
+ if (autoContinued >= autoAllowed() || deps.signal?.aborted || deps.shouldPause?.())
3816
3874
  return false;
3817
3875
  const now = (await store.getSession(sessionId))?.tasks.find((x) => x.id === task.id);
3818
3876
  if (!now || !now.limit || now.status === 'aborted' || !isContinuable(now))
@@ -3823,8 +3881,8 @@ export async function runSession(sessionId, deps) {
3823
3881
  taskId: task.id,
3824
3882
  type: 'task-auto-continue',
3825
3883
  level: 'warn',
3826
- message: `"${task.title}" stopped at ${now.limit.setting} (${now.limit.value}); carrying it on in its own chat, from where it got to (${autoContinued} of ${autoAllowed})`,
3827
- data: { setting: now.limit.setting, value: now.limit.value, time: autoContinued, of: autoAllowed, status: now.status },
3884
+ message: `"${task.title}" stopped at ${now.limit.setting} (${now.limit.value}); carrying it on in its own chat, from where it got to (${autoContinued} of ${autoAllowed()})`,
3885
+ data: { setting: now.limit.setting, value: now.limit.value, time: autoContinued, of: autoAllowed(), status: now.status },
3828
3886
  });
3829
3887
  await store.continueTask(sessionId, task.id);
3830
3888
  session = (await store.getSession(sessionId));
@@ -3838,7 +3896,7 @@ export async function runSession(sessionId, deps) {
3838
3896
  for (;;) {
3839
3897
  while (outcome.status === 'blocked' && retried < retriesAllowed && !deps.signal?.aborted && !(outcome.stopCode && NOT_THE_CHATS.includes(outcome.stopCode))
3840
3898
  // A task a limit stopped is carried on where it is, with its work, not started over in a fresh chat.
3841
- && !(autoContinued < autoAllowed && !!(await store.getSession(sessionId))?.tasks.find((x) => x.id === task.id)?.limit)) {
3899
+ && !(autoContinued < autoAllowed() && !!(await store.getSession(sessionId))?.tasks.find((x) => x.id === task.id)?.limit)) {
3842
3900
  retried += 1;
3843
3901
  bus.publish({
3844
3902
  sessionId,
@@ -3896,8 +3954,8 @@ export async function runSession(sessionId, deps) {
3896
3954
  level: outcome.status === 'done' ? 'info' : 'warn',
3897
3955
  message: outcome.status === 'done'
3898
3956
  ? `"${task.title}" done after being carried on ${autoContinued} time(s) on its own`
3899
- : `"${task.title}" ended ${outcome.status} after being carried on ${autoContinued} time(s) on its own${autoContinued >= autoAllowed ? ` — limits.autoContinue (${autoAllowed}) reached` : ''}`,
3900
- data: { times: autoContinued, of: autoAllowed, status: outcome.status },
3957
+ : `"${task.title}" ended ${outcome.status} after being carried on ${autoContinued} time(s) on its own${autoContinued >= autoAllowed() ? ` — limits.autoContinue (${autoAllowed()}) reached` : ''}`,
3958
+ data: { times: autoContinued, of: autoAllowed(), status: outcome.status },
3901
3959
  });
3902
3960
  }
3903
3961
  if (retried > 0) {
@@ -3952,6 +4010,7 @@ export async function runSession(sessionId, deps) {
3952
4010
  }
3953
4011
  }
3954
4012
  finally {
4013
+ unwindow();
3955
4014
  // No message at work: a window closed from now on is the next message's to open. One being opened again is let finish.
3956
4015
  await transport?.releaseWindow?.().catch(() => undefined);
3957
4016
  // A borrowed window belongs to whoever opened it and stays open for the next session.
@@ -264,11 +264,11 @@ These are the program's foundations. They come with it, the program holds Copilo
264
264
  - Each message is one task. The next message goes into the **same Copilot conversation**, so it can build on what was done ("now add tests for that"). ${Q('chat.newChat')} starts a conversation with nothing of the earlier one. Before each message the folder is photographed, and with ${Q('chat.rewind')} the folder is put back exactly as it was then.
265
265
  - The conversations are in the list at the top of the chat; ${Q('chat.rename')} (✎ beside it) gives the open one a name of the person's own. Every part of a conversation — a message, a reply, a command with what it printed, an ending, a plan, a question of the lead and its answer, the lead's list of subtasks — has a **Copy** button, so the person can paste any of it to you.
266
266
  - Git: the chat works on the branch the folder is on, and may commit, stage, switch or make branches, stash, merge and pull when asked; it may not push, reset, rebase, clean or clone. ${Q('nb.button')} (under the chat's box, beside the skills) fetches the latest of the remote's main and makes a new local branch from it for the next task — one that does not track main, so its work is never pushed there by mistake. When something is not committed, it asks whether to take it along, to put it aside on a branch of its own, or to commit it on the branch the folder is on now (with a message of their own or the default, not pushed); nothing is ever deleted. Whenever git needs a password, **Git opens its own window for it** (see "How you help", 12), and the work waits for it. The person commits and pushes **themselves** in the Git view: ${Q('git.commit')} (or ${Q('git.commitAll')} when nothing is staged) with a message of their own, under their own name for git, and ${Q('git.publish')} or the push beside it — that is theirs, not the chat's, which still never pushes. The project's hooks run there as in a terminal, unless one is not the project's own (not committed, changed since, or committed by the bot): then the view names it and asks. When a commit or a push does not go through, the view says why in a sentence, over git's own words; send them there first.
267
- - ${Q('nav.queue')} (in the bar on top): tasks written beforehand that run one after another while nobody watches, each in a new chat on its own model. Each has a name, ${Q('q.lead')} or a review on a model of its own, ${Q('q.skill')}, where it works (${Q('q.branchMain')} gives it a branch of its own made from main), and ${Q('q.dependsOn')}: when a task fails, the ones that depend on it are skipped and the others still run. ${Q('q.run')} starts it, ${Q('q.stop')} stops it. A task added while a message sent from the chat is working starts after it — the button then reads ${Q('q.addAfter')}. Every task needs a model named, in the task or in Settings, since nobody is there to choose one by hand. With ${Q('q.plan')}, each task's plan — the lead's, with two chats — is approved before anything changes. A task that waits for the person longer than ${Q('q.parkAfter')} allows (two minutes by default) is set aside, marked ${Q('q.parked')}, and the next task starts; its card is kept, even if the program is closed, and once answered it carries on from where it stopped. So a queue can be left running.
267
+ - ${Q('nav.queue')} (in the bar on top): tasks written beforehand that run one after another while nobody watches, each in a new chat on its own model. Each has a name, ${Q('q.lead')} or a review on a model of its own, ${Q('q.skill')}, where it works (${Q('q.branchMain')} gives it a branch of its own made from main), and ${Q('q.dependsOn')}: when a task fails, the ones that depend on it are skipped and the others still run. ${Q('q.run')} starts it, ${Q('q.stop')} stops it: the task at work, like one the program was closed under, carries on from where it stopped, in its own chat, when the queue is run again. A task added while a message sent from the chat is working starts after it — the button then reads ${Q('q.addAfter')}. Every task needs a model named, in the task or in Settings, since nobody is there to choose one by hand: the bot chooses it, even when Settings choose models by hand. With ${Q('q.plan')}, each task's plan — the lead's, with two chats — is approved before anything changes. A task that waits for the person longer than ${Q('q.parkAfter')} allows (two minutes by default) is set aside, marked ${Q('q.parked')}, and the next task starts; its card is kept, even if the program is closed, and once answered it carries on from where it stopped. A sign-in Copilot asks for is waited for as long as it takes. So a queue can be left running.
268
268
  - ${Q('chat.lead')} (under the chat's box, for a new conversation; not ticked at first): not ticked, the chat works as it always has — one conversation that does the work; ticked, the message goes to a **lead** that directs a **worker** — see "Two chats" below. The person chooses for each conversation; to change it, they start a ${Q('chat.newChat')}.
269
269
  - ${Q('chat.kerrigan')} (under the chat's box, for a new conversation; not ticked at first): the program does by itself what the person would otherwise do with you by hand: a Kerrigan of the program's own — a conversation in the same Copilot window, told the program's foundations, the projects, the skills and the limits — directs chats of her own (${Q('kz.openChat')} shows one as it works) until the task is done (see "The way you work", step 4). Before she asks the person anything she looks in what Copilot reaches for them and has a chat look in the code. Commands still run as Settings say; platform access, scripts to run by hand, passwords and a model chosen by hand stay the person's. ${Q('exec.maxKerriganSends')} in Settings bounds how many messages she sends for one task. When the person wants a task done with the fewest stops, suggest it.
270
270
  - Limits from the settings: at most ${n(f.maxIterations)} messages to Copilot and ${n(f.maxRunMinutes)} minutes per task (the time paused, or waiting for the person — a card, Git's password window, a sign-in —, not counted), carried on by itself up to ${n(f.autoContinue)} time(s) when a limit is reached. One message in the chat can be at most ${n(MAX_INSTRUCTION_CHARS)} characters. A message the program sends to Copilot that is longer than Settings allow ("Longest message to the chat as text", 120,000 characters by default) — with a long level 2 or skill in it — goes as its beginning, with the whole text attached as a file.
271
- - ${Q('nav.defaults')} (the link at the top): the projects — each with its folder, its branch and its level 2, which is where the notes below come from —, ${Q('login.button')}, the models of the worker, the lead, Kerrigan and the review, the skills, the locators by which the bot finds things on Copilot's page (the model menu's, and "The chat's locators"), "Steps to the chat", and how a task runs, including retrying an interrupted subtask. Every field there has an ⓘ that says what it is for. A setting saved while a message is at work takes effect without a restart: the rules a step is judged by, the limits, the locators and the steps at once (in the Copilot window that is open, too); the models, plan mode, the project and the skills from the next message; the chat's address, browser and waits when the window opens again — a notice after saving says which. A project can be marked ${Q('proj.readOnly')}: the bot then reads it and runs what only reads it, but changes nothing in it — whatever a command changes there is put back and the chat is told; on the chat's own folder every message can then only read and report. The base prompt (level 1), the text that tells Copilot how to work, is shown there to read; it changes only when the program is updated, and the foundations at the top of this text are its rules: nothing written in Settings, in a skill or in a task changes them. ${Q('nav.system')} is the report on the machine — the version, the program's folder, what the terminal showed, and an export of everything the bot keeps, for when something has to be looked into.
271
+ - ${Q('nav.defaults')} (the link at the top): the projects — each with its folder, its branch and its level 2, which is where the notes below come from —, ${Q('login.button')}, the models of the worker, the lead, Kerrigan and the review, the skills, the locators by which the bot finds things on Copilot's page (the model menu's, and "The chat's locators"), "Steps to the chat", and how a task runs, including retrying an interrupted subtask. Every field there has an ⓘ that says what it is for. A setting saved while a message is at work takes effect without a restart: the rules a step is judged by, the limits, the locators, the steps and the window's waits at once (in the Copilot window that is open, too); the models, plan mode, the project and the skills from the next message; the chat's address and browser when the window opens again — a notice after saving says which. A project can be marked ${Q('proj.readOnly')}: the bot then reads it and runs what only reads it, but changes nothing in it — whatever a command changes there is put back and the chat is told; on the chat's own folder, or one that holds it, every message can then only read and report. The base prompt (level 1), the text that tells Copilot how to work, is shown there to read; it changes only when the program is updated, and the foundations at the top of this text are its rules: nothing written in Settings, in a skill or in a task changes them. ${Q('nav.system')} is the report on the machine — the version, the program's folder, what the terminal showed, and an export of everything the bot keeps, for when something has to be looked into.
272
272
  - **When Copilot's page changes.** The program finds the box, Send, the answers, the sidebar, an attached file and the model menu on Copilot's page by locators (CSS or XPath), all editable in Settings, and takes the steps on the way to the chat — declining first-run dialogs, closing Office's feedback panel, naming the conversation —, which can be switched off there, with steps of the person's own added ("if this is on the page, do this"). When a locator finds nothing, the work stops (or, for what it can do without, goes on), and a notice on every page names it, with ${Q('chatloc.file')}, ${Q('chatloc.fix')} (its field in red) and ${Q('chatloc.dismiss')}; ${Q('chatloc.check')} in Settings looks for all of them at once. The file holds all a chatbot needs to give the new locator — and you are such a chatbot: when the person attaches it to you, do what it says (see "How you help").
273
273
  - When the work is over — nothing runs, the queue is done, nothing waits — a large ${Q('done.label')} shows in the middle of the window ("Finished: …" when it did not end well); a click or a key takes it away. Before every message the program puts the Copilot window back on its own conversation — by its address, after a sign-in, or by its name in the sidebar; when it cannot, nothing is sent anywhere and the message stops, saying so: then look for the conversation in Copilot's sidebar, and carry on with ${Q('chat.carryOn')}, or start a ${Q('chat.newChat')}.
274
274
 
@@ -381,11 +381,11 @@ function bgText(f) {
381
381
  - Всяко съобщение е едно задание. Следващото съобщение отива в **същия разговор в Copilot**, така че може да надгражда („сега добави тестове за това“). ${Q('chat.newChat')} започва разговор без нищо от предишния. Преди всяко съобщение папката се „снима“ и с ${Q('chat.rewind')} папката се връща точно каквато е била тогава.
382
382
  - Разговорите са в списъка най-горе в чата; ${Q('chat.rename')} (✎ до него) дава на отворения разговор име по избор на човека. Всяка част от разговора — съобщение, отговор, команда с изписаното от нея, край, план, въпрос на ръководителя и отговорът му, списъкът с подзадачи на ръководителя — има бутон **Копирай**, така че човекът може да ти постави която и да е от тях.
383
383
  - Git: чатът работи на бранча, на който е папката, и може да комитва, да добавя, да сменя или прави бранчове, да прибира настрана (stash), да слива и да изтегля (pull), когато е помолен; не може да прави push, reset, rebase, clean или clone. ${Q('nb.button')} (под полето на чата, до skill-овете) взима последното от main на remote и прави от него нов локален бранч за следващата задача — такъв, който не следи main, така че работата му никога не отива там по грешка. Когато има некомитнато, пита дали да се вземе, да се остави настрана в отделен бранч или да се commit-не в бранча, на който е папката сега (със съобщение на човека или по подразбиране, без push); нищо никога не се изтрива. Когато git има нужда от парола, **Git отваря свой прозорец за нея** (виж „Как помагаш“, 12), а работата я чака. Човекът комитва и прави push **сам** в изгледа Git: ${Q('git.commit')} (или ${Q('git.commitAll')}, когато нищо не е подготвено) със свое съобщение и със своето име в git, и ${Q('git.publish')} или push-а до него — това е негово, не на чата, който пак никога не прави push. Hook-овете на проекта се пускат там както в терминал, освен ако някой не е собствен на проекта (не е комитнат, променен е след това или е комитнат от бота): тогава изгледът го назовава и пита. Когато комит или push не мине, изгледът казва защо с едно изречение, над собствените думи на git; първо прати човека там.
384
- - ${Q('nav.queue')} (в лентата горе): задачи, написани предварително, които се изпълняват една след друга, докато човекът го няма, всяка в нов чат със свой модел. Всяка има име, ${Q('q.lead')} или рецензия със собствен модел, ${Q('q.skill')}, къде работи (${Q('q.branchMain')} ѝ дава отделен бранч, направен от main) и ${Q('q.dependsOn')}: когато задача се провали, тези, които зависят от нея, се прескачат, а другите продължават. ${Q('q.run')} я пуска, ${Q('q.stop')} я спира. Задача, добавена, докато работи съобщение, пуснато от чата, започва след него — тогава бутонът е ${Q('q.addAfter')}. Всяка задача трябва да има посочен модел — в задачата или в Настройки, — защото няма кой да го избере ръчно. С ${Q('q.plan')} планът на всяка задача — на ръководителя, при два чата — се одобрява, преди нещо да се промени. Задача, която чака човека по-дълго, отколкото позволява ${Q('q.parkAfter')} (по подразбиране две минути), се оставя настрана, отбелязана ${Q('q.parked')}, и започва следващата; картата ѝ се пази, дори ако програмата бъде затворена, а след отговор продължава оттам, където е спряла. Така опашката може да се остави да работи.
384
+ - ${Q('nav.queue')} (в лентата горе): задачи, написани предварително, които се изпълняват една след друга, докато човекът го няма, всяка в нов чат със свой модел. Всяка има име, ${Q('q.lead')} или рецензия със собствен модел, ${Q('q.skill')}, къде работи (${Q('q.branchMain')} ѝ дава отделен бранч, направен от main) и ${Q('q.dependsOn')}: когато задача се провали, тези, които зависят от нея, се прескачат, а другите продължават. ${Q('q.run')} я пуска, ${Q('q.stop')} я спира: задачата в ход, както и тази, под която програмата е затворена, продължава оттам, докъдето е стигнала, в своя чат, когато опашката се пусне пак. Задача, добавена, докато работи съобщение, пуснато от чата, започва след него — тогава бутонът е ${Q('q.addAfter')}. Всяка задача трябва да има посочен модел — в задачата или в Настройки, — защото няма кой да го избере ръчно: ботът го избира, дори когато Настройки избират моделите на ръка. С ${Q('q.plan')} планът на всяка задача — на ръководителя, при два чата — се одобрява, преди нещо да се промени. Задача, която чака човека по-дълго, отколкото позволява ${Q('q.parkAfter')} (по подразбиране две минути), се оставя настрана, отбелязана ${Q('q.parked')}, и започва следващата; картата ѝ се пази, дори ако програмата бъде затворена, а след отговор продължава оттам, където е спряла. Вход в Copilot се чака колкото трябва. Така опашката може да се остави да работи.
385
385
  - ${Q('chat.lead')} (под полето на чата, за нов разговор; в началото не е отметнато): неотметнато, чатът работи както винаги — един разговор, който върши работата; отметнато, съобщението отива при **ръководител**, който ръководи **изпълнител** — виж „Два чата“ по-долу. Човекът избира за всеки разговор; за да го смени, започва ${Q('chat.newChat')}.
386
386
  - ${Q('chat.kerrigan')} (под полето на чата, за нов разговор; в началото не е отметнато): програмата прави сама това, което иначе човекът прави с теб на ръка: Кериган на самата програма — разговор в същия прозорец на Copilot, на който са дадени основите на програмата, проектите, skill-овете и ограниченията — ръководи свои чатове (${Q('kz.openChat')} показва такъв, докато работи), докато задачата стане готова (виж „Как работиш“, стъпка 4). Преди да попита човека нещо, търси в това, до което Copilot стига за него, и праща чат да погледне в кода. Командите пак вървят, както казват Настройки; достъпът до платформи, скриптовете за ръчно пускане, паролите и ръчно избраният модел остават на човека. ${Q('exec.maxKerriganSends')} в Настройки ограничава колко съобщения праща тя за една задача. Когато човекът иска задача да мине с възможно най-малко спирания, предложи го.
387
387
  - Ограничения от настройките: най-много ${n(f.maxIterations)} съобщения към Copilot и ${n(f.maxRunMinutes)} минути на задание (без времето на пауза и на чакане за човека — карта, прозорецът на Git за парола, вход), продължено само до ${n(f.autoContinue)} път(и), когато се стигне ограничение. Едно съобщение в чата може да е най-много ${n(MAX_INSTRUCTION_CHARS)} знака. Съобщение, което програмата праща на Copilot и което е по-дълго, отколкото позволяват Настройки („Най-дълго съобщение към чата като текст“, 120 000 знака по подразбиране) — с дълъг шаблон ниво 2 или skill в него, — отива като началото си, а целият текст се прикачва като файл.
388
- - ${Q('nav.defaults')} (връзката горе): проектите — всеки с папката, клона и шаблона си ниво 2, откъдето са бележките по-долу, —, ${Q('login.button')}, моделите на изпълнителя, на ръководителя, на Кериган и на рецензията, skill-овете, локаторите, по които ботът намира нещата в страницата на Copilot (на менюто с модели и „Локатори на чата“), „Стъпки до чата“ и как върви едно задание, включително повторението на прекъсната подзадача. Всяко поле там има ⓘ, което казва за какво е. Настройка, записана докато работи съобщение, важи без рестарт: правилата, по които се преценява стъпка, ограниченията, локаторите и стъпките — веднага (и в отворения прозорец на Copilot); моделите, „Първо план“, проектът и skill-овете — от следващото съобщение; адресът на чата, браузърът и изчакванията — когато прозорецът се отвори отново; съобщение след записа казва кое. Проект може да се отбележи ${Q('proj.readOnly')}: тогава ботът го чете и пуска това, което само го чете, но не променя нищо в него — каквото команда промени там, се връща, и чатът научава; ако е папката на чата, всяко съобщение може само да чете и да докладва. Основният prompt (ниво 1) — текстът, който казва на Copilot как да работи — е показан там за четене; сменя се само когато програмата се обнови, а основите в началото на този текст са негови правила: нищо, написано в Настройки, в skill или в задание, не ги променя. ${Q('nav.system')} е отчетът за машината — версията, папката на програмата, какво е показал терминалът и експорт на всичко, което ботът пази, когато нещо трябва да се проучи.
388
+ - ${Q('nav.defaults')} (връзката горе): проектите — всеки с папката, клона и шаблона си ниво 2, откъдето са бележките по-долу, —, ${Q('login.button')}, моделите на изпълнителя, на ръководителя, на Кериган и на рецензията, skill-овете, локаторите, по които ботът намира нещата в страницата на Copilot (на менюто с модели и „Локатори на чата“), „Стъпки до чата“ и как върви едно задание, включително повторението на прекъсната подзадача. Всяко поле там има ⓘ, което казва за какво е. Настройка, записана докато работи съобщение, важи без рестарт: правилата, по които се преценява стъпка, ограниченията, локаторите, стъпките и изчакванията на прозореца — веднага (и в отворения прозорец на Copilot); моделите, „Първо план“, проектът и skill-овете — от следващото съобщение; адресът на чата и браузърът — когато прозорецът се отвори отново; съобщение след записа казва кое. Проект може да се отбележи ${Q('proj.readOnly')}: тогава ботът го чете и пуска това, което само го чете, но не променя нищо в него — каквото команда промени там, се връща, и чатът научава; ако е папката на чата или я съдържа, всяко съобщение може само да чете и да докладва. Основният prompt (ниво 1) — текстът, който казва на Copilot как да работи — е показан там за четене; сменя се само когато програмата се обнови, а основите в началото на този текст са негови правила: нищо, написано в Настройки, в skill или в задание, не ги променя. ${Q('nav.system')} е отчетът за машината — версията, папката на програмата, какво е показал терминалът и експорт на всичко, което ботът пази, когато нещо трябва да се проучи.
389
389
  - **Когато страницата на Copilot се смени.** Програмата намира полето, „Send“, отговорите, страничната лента, прикачения файл и менюто с модели в страницата на Copilot по локатори (CSS или XPath), които всички се променят в Настройки, и минава стъпките до чата — отказва диалозите при първо пускане, затваря панела за обратна връзка на Office, именува разговора, — които там могат да се изключат, и към тях могат да се добавят стъпки на човека („ако това е на страницата, направи това“). Когато локатор не намери нищо, работата спира (или, за каквото може и без него, продължава), а съобщение на всяка страница го назовава, с ${Q('chatloc.file')}, ${Q('chatloc.fix')} (полето му в червено) и ${Q('chatloc.dismiss')}; ${Q('chatloc.check')} в Настройки търси всички наведнъж. Файлът съдържа всичко, нужно на чатбот, за да даде новия локатор — а ти си такъв чатбот: когато човекът ти го прикачи, направи каквото казва той (виж „Как помагаш“).
390
390
  - Когато работата свърши — нищо не работи, опашката е минала, нищо не чака, — голямо ${Q('done.label')} се показва в средата на прозореца („Приключи: …“, когато не е завършило добре); едно натискане или клавиш го махат. Преди всяко съобщение програмата връща прозореца на Copilot на собствения му разговор — по адреса му, след вход или по името му в страничната лента; когато не може, нищо не се изпраща никъде и съобщението спира, като го казва: тогава потърси разговора в страничната лента на Copilot и продължи с ${Q('chat.carryOn')} или започни ${Q('chat.newChat')}.
391
391
 
@@ -210,8 +210,8 @@ export const SYSTEM_GUIDE = [
210
210
  kind: 'link',
211
211
  en: 'Download the file for a chatbot',
212
212
  bg: 'Изтегли файл за чатбота',
213
- doesEn: 'One file with all a chatbot needs to give the right locator: what to do and why, what failed and when, the old locator, the part of the page where the element most likely is (around an element near it that was found), the whole page without scripts, styles and conversation names, and how the chatbot walks you through finding it in Edge (F12) when it is in neither. Attach it to Copilot or any other chatbot and send it, with nothing else to write; the chatbot speaks the interface\'s language.',
214
- doesBg: 'Един файл с всичко, което е нужно на чатбот, за да даде правилния локатор: какво да направи и защо, какво се е провалило и кога, старият локатор, частта от страницата, където елементът най-вероятно е (около близък елемент, който е намерен), цялата страница без скриптове, стилове и имена на разговори, и как чатботът да ви преведе през търсенето в Edge (F12), ако го няма в нито една от тях. Прикачете го в Copilot или друг чатбот и го пратете, без да пишете нищо друго; чатботът говори на езика на интерфейса.',
213
+ doesEn: 'One file with all a chatbot needs to give the right locator: what failed and the old locator, the part of the page where the element most likely is, the whole page without scripts and styles, and how to find it in Edge (F12) when it is in neither. Attach it to any chatbot and send it, writing nothing; it answers in the interface\'s language.',
214
+ doesBg: 'Един файл с всичко, нужно на чатбот, за да даде правилния локатор: какво се е провалило и старият локатор, частта от страницата, където елементът най-вероятно е, цялата страница без скриптове и стилове, и как да го намерите в Edge (F12), ако го няма в тях. Прикачете го на който и да е чатбот и го пратете, без да пишете нищо; той отговаря на езика на интерфейса.',
215
215
  },
216
216
  {
217
217
  key: 'chatloc.dismiss',
@@ -241,8 +241,8 @@ export const SYSTEM_GUIDE = [
241
241
  kind: 'note',
242
242
  en: 'Step {n} is waiting for you',
243
243
  bg: 'Стъпка {n} чака вашето решение',
244
- doesEn: 'A card for each step that waits for you, with the exact command. The browser tab shows "(n) waiting for you".',
245
- doesBg: 'Карта за всяка стъпка, която чака вас, с точната команда. Разделът на браузъра показва „(n) чака вас“.',
244
+ doesEn: 'A card for each step that waits for you, with the exact command. The browser tab says "Waiting for you (n) — copilot-operator".',
245
+ doesBg: 'Карта за всяка стъпка, която чака вас, с точната команда. Разделът на браузъра казва „Waiting for you (n) — copilot-operator“.',
246
246
  },
247
247
  {
248
248
  key: 'awaiting.title',
@@ -527,8 +527,8 @@ export const SYSTEM_GUIDE = [
527
527
  kind: 'button',
528
528
  en: 'Git',
529
529
  bg: 'Git',
530
- doesEn: 'Shows the open folder\'s git: the branch, the staged changes and the changes (each file with its letter — M, A, D, R, U, ! in conflict — and its lines), and the branch\'s commits; a file opens its two versions side by side, a commit its files. A file opens as a preview, as in VS Code: its tab in italics, replaced by the next file opened with one click; a double click keeps it. A file\'s "+" stages it and its "−" unstages it; beside a list\'s heading, the whole list. The button\'s two numbers: the files not committed yet, and every file changed on this branch.',
531
- doesBg: 'Показва git на отворената папка: клона, подготвените промени и промените (всеки файл с буквата си — M, A, D, R, U, ! в конфликт — и редовете си) и комитите на клона; файл отваря двете си версии една до друга, комит — файловете си. Файлът се отваря за преглед, както във VS Code: разделът му е в курсив и се заменя от следващия файл, отворен с едно щракване; двоен клик го задържа. „+“ на файл го подготвя, „−“ го изважда от подготвените; до заглавието на списък — целия списък. Двете числа на бутона: файловете, които още не са комитнати, и всички файлове, променени на този клон.',
530
+ doesEn: 'Shows the open folder\'s git: the branch, the staged changes and the changes (each file with its letter — M, A, D, R, U, ! in conflict), and the branch\'s commits; a file opens its two versions side by side, a commit its files. One click opens a preview (its tab in italics, replaced by the next); a double click keeps it. A file\'s "+" stages it, "−" unstages it; beside a heading, the whole list. The button\'s two numbers: the files not committed, and those changed on this branch.',
531
+ doesBg: 'Показва git на отворената папка: клона, подготвените промени и промените (всеки файл с буквата си — M, A, D, R, U, ! в конфликт) и комитите на клона; файл отваря двете си версии една до друга, комит — файловете си. Едно щракване отваря преглед (разделът в курсив, заменя се от следващия); двоен клик го задържа. „+“ на файл го подготвя, „−“ го изважда; до заглавие — целия списък. Двете числа на бутона: некомитнатите файлове и променените на този клон.',
532
532
  },
533
533
  {
534
534
  key: 'wb.refresh',
@@ -567,8 +567,8 @@ export const SYSTEM_GUIDE = [
567
567
  kind: 'button',
568
568
  en: 'Commit',
569
569
  bg: 'Комитни',
570
- doesEn: 'At the top of the git view, under the message box (Ctrl+Enter there does the same): commits the staged files with that message, under the person\'s own name for git — their commit, not the chat\'s. The project\'s hooks run as in a terminal, unless one is not the project\'s own: then it names it and asks — "Without hooks", "Run them anyway" or "Cancel". When it does not go through, a sentence says why over git\'s own words. Nothing is ever amended or forced.',
571
- doesBg: 'Най-горе в изгледа git, под полето за съобщението (Ctrl+Enter там прави същото): комитва подготвените файлове с това съобщение, с името на човека в git — неговият комит, не на чата. Hook-овете на проекта се пускат както в терминал, освен ако някой не е собствен на проекта: тогава го назовава и пита — „Без hook-ове“, „Пусни ги все пак“ или „Откажи“. Когато не мине, едно изречение казва защо, над собствените думи на git. Нищо никога не се поправя (amend) и не се налага насила.',
570
+ doesEn: 'At the top of the git view, under the message box (Ctrl+Enter there does the same): commits the staged files with that message, under the person\'s own git name. The project\'s hooks run as in a terminal; one not the project\'s own is named and asked about — "Without hooks", "Run them anyway" or "Cancel". A failure is said in a sentence over git\'s own words. Nothing is ever amended or forced.',
571
+ doesBg: 'Най-горе в изгледа git, под полето за съобщението (Ctrl+Enter там прави същото): комитва подготвените файлове с това съобщение, с името на човека в git. Hook-овете на проекта се пускат както в терминал; чужд на проекта се назовава и се пита — „Без hook-ове“, „Пусни ги все пак“ или „Откажи“. Неуспехът се казва с едно изречение над думите на git. Нищо не се поправя (amend) и не се налага насила.',
572
572
  },
573
573
  {
574
574
  key: 'git.commitAll',
@@ -806,8 +806,8 @@ export const SYSTEM_GUIDE = [
806
806
  kind: 'badge',
807
807
  en: 'LIVE',
808
808
  bg: 'LIVE',
809
- doesEn: 'Beside "Chat" while the bot works, red (amber while paused); on hover it says who is at work. The browser tab says it too: "● Worker at work — copilot-operator", or "(1) waiting for you" when something waits for the operator.',
810
- doesBg: 'До „Чат“, докато ботът работи — червено (жълто на пауза); при посочване казва кой работи. Казва го и табът на браузъра: „● Работи: Изпълнител — copilot-operator“, или „(1) чака вас“, когато нещо чака оператора.',
809
+ doesEn: 'Beside "Chat" while the bot works, red (amber while paused); on hover it says who is at work. The browser tab says how it stands, in English whatever language the page is in: "Working... — copilot-operator", "Paused", "Waiting for you (1)" when something waits for the operator, "Waiting for your password", "Waiting for you to sign in"; then how the last message ended — "Done", "Error", "Stopped", "Blocked", "Limit reached".',
810
+ doesBg: 'До „Чат“, докато ботът работи — червено (жълто на пауза); при посочване казва кой работи. Табът на браузъра казва как стоят нещата, на английски на всеки език на страницата: „Working... — copilot-operator“, „Paused“, „Waiting for you (1)“, когато нещо чака оператора, „Waiting for your password“, „Waiting for you to sign in“; после как е свършило последното съобщение — „Done“, „Error“, „Stopped“, „Blocked“, „Limit reached“.',
811
811
  },
812
812
  {
813
813
  key: 'actor.asks',
@@ -854,8 +854,8 @@ export const SYSTEM_GUIDE = [
854
854
  kind: 'button',
855
855
  en: '⎇ New branch from main',
856
856
  bg: '⎇ Нов бранч от main',
857
- doesEn: 'Under the chat\'s box, beside the skills: fetches the latest of the remote\'s main and opens a window to make a new local branch from it for the next task — not tracking main, so its work is never pushed there by mistake. A password or a key\'s passphrase goes into Git\'s own window. Off while a task works, and where the folder is not a repository.',
858
- doesBg: 'Под полето на чата, до skill-овете: взима последното от main на remote и отваря прозорец за нов локален клон от него за следващата задача — без да следи main, така че работата му никога не отива там по грешка. Парола или passphrase на ключ се въвежда в собствения прозорец на Git. Изключен, докато работи задача, и където папката не е хранилище.',
857
+ doesEn: 'Under the chat\'s box, beside the skills: fetches the latest of the remote\'s main and opens a window to make a new local branch from it for the next task — not tracking main, so its work is never pushed there by mistake. A password or a key\'s passphrase goes into Git\'s own window. Off while a task works, and where the folder is not a repository. Uncommitted work of a queue task set aside on the folder is put aside for it, not taken along.',
858
+ doesBg: 'Под полето на чата, до skill-овете: взима последното от main на remote и отваря прозорец за нов локален клон от него за следващата задача — без да следи main, така че работата му никога не отива там по грешка. Парола или passphrase на ключ се въвежда в собствения прозорец на Git. Изключен, докато работи задача, и където папката не е хранилище. Некомитнатата работа на задача от опашката, оставена настрана в папката, се оставя настрана за нея, не се взима.',
859
859
  },
860
860
  {
861
861
  key: 'nb.title',
@@ -902,8 +902,8 @@ export const SYSTEM_GUIDE = [
902
902
  kind: 'button',
903
903
  en: 'Try again',
904
904
  bg: 'Опитай отново',
905
- doesEn: 'When the remote could not be fetched — a password not given, a network down: fetches again, and Git asks for the password again if it must. Beside it, the branch can be made from what was last fetched here.',
906
- doesBg: 'Когато remote-ът не е могъл да бъде взет — непоставена парола, липса на мрежа: взима отново, и Git пак пита за паролата, ако трябва. До него бранчът може да се направи от последно взетото тук.',
905
+ doesEn: 'When the remote could not be fetched — a password not given, a network down: fetches again, and Git asks for the password again if it must. Beside it, the branch can be made from what was last fetched here. Also when making the branch was refused (the folder changed since it was read): reads the folder again, the name kept.',
906
+ doesBg: 'Когато remote-ът не е могъл да бъде взет — непоставена парола, липса на мрежа: взима отново, и Git пак пита за паролата, ако трябва. До него бранчът може да се направи от последно взетото тук. Също когато създаването на бранча е отказано (папката се е променила, откакто е прочетена): прочита папката отново, името остава.',
907
907
  },
908
908
  {
909
909
  key: 'nb.making',
@@ -958,8 +958,8 @@ export const SYSTEM_GUIDE = [
958
958
  kind: 'button',
959
959
  en: 'Open a folder',
960
960
  bg: 'Отвори папка',
961
- doesEn: 'Opens the machine\'s folder dialog; the folder chosen becomes the project the chat and the Files view work on (Settings → project folder).',
962
- doesBg: 'Отваря прозореца за избор на папка; избраната става проектът, върху който работят чатът и изгледът „Файлове“ (Настройки → папка на проекта).',
961
+ doesEn: 'Opens the machine\'s folder dialog; the folder chosen becomes the project the chat and the Files view work on, with its own name, level 2 and "for reference only" — those of the one before are kept for it.',
962
+ doesBg: 'Отваря прозореца за избор на папка; избраната става проектът, върху който работят чатът и „Файлове“, със свои име, ниво 2 и „само за справка“ — тези на предишния се пазят за него.',
963
963
  },
964
964
  {
965
965
  key: 'chat.input',
@@ -1030,8 +1030,8 @@ export const SYSTEM_GUIDE = [
1030
1030
  kind: 'button',
1031
1031
  en: 'Send',
1032
1032
  bg: 'Изпрати',
1033
- doesEn: 'Sends the message and starts it on the branch the folder is on; nothing is asked about branches. The Copilot window stays open when the work on it has ended, says so with an OK, and the next message works in it; close it with its X when nothing is at work. Closed in the middle of a message, it is opened again on its conversation and the answer asked for again, as many times as Settings → Execution allow (3 by default); then the message stops, and "Continue" carries it on.',
1034
- doesBg: 'Изпраща съобщението и го пуска на бранча, на който е папката; нищо не се пита за бранчове. Прозорецът на Copilot остава отворен, когато работата в него свърши, казва го с „ОК“ и следващото съобщение работи в него; затворете го с X, когато нищо не работи. Затворен по средата на съобщение, той се отваря отново на разговора си и отговорът се иска пак, толкова пъти, колкото позволява Настройки → Изпълнение (3 по подразбиране); после съобщението спира и „Продължи“ го продължава.',
1033
+ doesEn: 'Sends the message and starts it on the branch the folder is on. The Copilot window stays open when the work ends, says so with an OK, and the next message works in it; close it with its X when nothing works. Closed mid-message, it is opened again on its conversation and the answer asked again, as many times as Settings → Execution allow (3 by default); then the message stops, and "Continue" carries it on.',
1034
+ doesBg: 'Изпраща съобщението и го пуска на бранча, на който е папката. Прозорецът на Copilot остава отворен, когато работата свърши, казва го с „ОК“ и следващото съобщение работи в него; затворете го с X, когато нищо не работи. Затворен по средата на съобщение, се отваря отново на разговора си и отговорът се иска пак, колкото пъти позволява Настройки → Изпълнение (3 по подразбиране); после съобщението спира и „Продължи“ го продължава.',
1035
1035
  },
1036
1036
  {
1037
1037
  key: 'chat.sendNote',
@@ -1118,8 +1118,8 @@ export const SYSTEM_GUIDE = [
1118
1118
  kind: 'checkbox',
1119
1119
  en: 'Two chats',
1120
1120
  bg: 'Два чата',
1121
- doesEn: 'Two chats, for a new conversation: the message goes to a lead, which restates it, has a worker survey the project, plans, gives the worker one subtask at a time and judges each report, until the result is ready in the form asked for; the worker runs the commands. Both are conversations in the same Copilot window. A started conversation shows how it began. With it, there is no "Review": the lead judges the worker.',
1122
- doesBg: 'Два чата, за нов разговор: съобщението отива при ръководител, който го преразказва, пуска изпълнител да огледа проекта, прави план, дава на изпълнителя по една подзадача и преценява всеки доклад, докато резултатът стане готов в поискания вид; изпълнителят пуска командите. И двата са разговори в един и същ прозорец на Copilot. Започнатият разговор показва как е започнал. С него няма „Рецензия“: ръководителят преценява изпълнителя.',
1121
+ doesEn: 'Two chats, for a new conversation: the message goes to a lead, which restates it, has a worker survey the project, plans, gives the worker one subtask at a time and judges each report until the result is ready; the worker runs the commands. Both are conversations in the same Copilot window. With it, there is no "Review": the lead judges the worker.',
1122
+ doesBg: 'Два чата, за нов разговор: съобщението отива при ръководител, който го преразказва, пуска изпълнител да огледа проекта, прави план, дава на изпълнителя по една подзадача и преценява всеки доклад, докато резултатът е готов; изпълнителят пуска командите. И двата са разговори в един прозорец на Copilot. С него няма „Рецензия“: ръководителят преценява изпълнителя.',
1123
1123
  },
1124
1124
  {
1125
1125
  key: 'chat.kerrigan',
@@ -1470,8 +1470,8 @@ export const SYSTEM_GUIDE = [
1470
1470
  kind: 'button',
1471
1471
  en: 'Run this and the rest',
1472
1472
  bg: 'Изпълни тази и останалите',
1473
- doesEn: 'Runs it and stops asking for the rest of this message.',
1474
- doesBg: 'Изпълнява я и спира да пита за останалото от това съобщение.',
1473
+ doesEn: 'Runs it and stops asking for the rest of this message. Not offered where Settings do not let a run go on unasked (no isolation, no programs listed, a policy lock): the card says which.',
1474
+ doesBg: 'Изпълнява я и спира да пита за останалото от това съобщение. Не се предлага, където Настройки не позволяват това (без изолация, без изброени програми, заключване): картата казва кое.',
1475
1475
  },
1476
1476
  {
1477
1477
  key: 'chat.askSkip',
@@ -1517,8 +1517,8 @@ export const SYSTEM_GUIDE = [
1517
1517
  kind: 'button',
1518
1518
  en: 'Save',
1519
1519
  bg: 'Запази',
1520
- doesEn: 'Saves the file (also Ctrl+S), over the version that was opened: a file changed on disk meanwhile is not overwritten without asking. A tab with changes not saved has a dot; closing it asks first.',
1521
- doesBg: 'Запазва файла (и с Ctrl+S), върху версията, която е била отворена: файл, променен на диска междувременно, не се презаписва без питане. Раздел с незапазени промени има точка; затварянето му пита първо.',
1520
+ doesEn: 'Saves the file (also Ctrl+S), over the version that was opened: a file changed on disk meanwhile is not overwritten without asking. A tab with changes not saved has a dot; closing it asks first. Edits not saved are kept in this browser, by folder, with their tabs: back after Settings, a reload or another folder.',
1521
+ doesBg: 'Запазва файла (и с Ctrl+S), върху версията, която е била отворена: файл, променен на диска междувременно, не се презаписва без питане. Раздел с незапазени промени има точка; затварянето му пита първо. Незаписаните промени се пазят в този браузър, по папка, с табовете си: връщат се след Настройки, презареждане или друга папка.',
1522
1522
  },
1523
1523
  {
1524
1524
  key: 'ed.revert',
@@ -1786,8 +1786,8 @@ export const SYSTEM_GUIDE = [
1786
1786
  kind: 'tab',
1787
1787
  en: 'Problems',
1788
1788
  bg: 'Проблеми',
1789
- doesEn: 'What did not go well in the conversation open in the chat — a message that ended unfinished, stopped or at a limit, and why; a check that failed. A press on one opens it under its line: all of what it says (the line shows only its start), the review\'s evidence for a finding, what it comes from, when it happened, the chat and the message it is of; a second press folds it. The count is of the ones not marked seen. Empty on a new chat.',
1790
- doesBg: 'Какво не е минало добре в отворения в чата разговор — съобщение, завършило незавършено, спряно или при ограничение, и защо; проверка, която не е минала. Натискане на проблем го отваря под реда му: всичко, което казва (редът показва само началото), доказателството на прегледа за находка, от какво идва, кога се е случил, чатът и съобщението, към които е; второ натискане го свива. Броят е на тези, които не са отбелязани като видени. Празно при нов чат.',
1789
+ doesEn: 'What did not go well in the conversation open in the chat — a message that ended unfinished, stopped or at a limit, and why; a check that failed. A press opens one in full under its line — the review\'s evidence, where it comes from, when, its chat and message; a second press folds it. The count is of those not marked seen.',
1790
+ doesBg: 'Какво не е минало добре в отворения разговор — съобщение, завършило незавършено, спряно или при ограничение, и защо; проверка, която не е минала. Натискане го отваря изцяло под реда му — доказателството на прегледа, откъде идва, кога, чатът и съобщението му; второ натискане го свива. Броят е на неотбелязаните като видени.',
1791
1791
  },
1792
1792
  {
1793
1793
  key: 'wb.problemsInfoLabel',
@@ -1890,8 +1890,8 @@ export const SYSTEM_GUIDE = [
1890
1890
  kind: 'note',
1891
1891
  en: 'Waits for you',
1892
1892
  bg: 'Чака вас',
1893
- doesEn: 'The status of a task set aside while it waited for the operator: under it, its card with what it waits for, to answer now; it carries on from where it stopped at the queue\'s next turn.',
1894
- doesBg: 'Състоянието на задача, оставена настрана, докато е чакала оператора: под нея е картата ѝ с това, което чака, за отговор сега; продължава оттам, където е спряла, при следващия ход на опашката.',
1893
+ doesEn: 'The status of a task set aside while it waited for the operator: under it, its card with what it waits for, to answer now; it carries on from where it stopped at the queue\'s next turn. Taken out or run again, its chat\'s card closes and "Continue" carries it on there; answered, the queue carries it on.',
1894
+ doesBg: 'Състоянието на задача, оставена настрана, докато е чакала оператора: под нея е картата ѝ с това, което чака, за отговор сега; продължава оттам, където е спряла, при следващия ход на опашката. Махната или пусната отново, картата в чата ѝ се затваря и „Продължи“ я продължава там; отговорена — продължава я опашката.',
1895
1895
  },
1896
1896
  {
1897
1897
  key: 'pk.approve',
@@ -1954,8 +1954,8 @@ export const SYSTEM_GUIDE = [
1954
1954
  kind: 'button',
1955
1955
  en: 'Stop the queue',
1956
1956
  bg: 'Спри опашката',
1957
- doesEn: 'Stops the task at work, as the chat\'s Stop does; the rest wait.',
1958
- doesBg: 'Спира задачата, която работи, както Спри в чата; останалите чакат.',
1957
+ doesEn: 'Stops the task at work, as the chat\'s Stop does; it carries on from there, and the rest after it, when the queue is run again.',
1958
+ doesBg: 'Спира задачата, която работи, както Спри в чата; тя продължава оттам, а след нея и останалите, когато опашката се пусне пак.',
1959
1959
  },
1960
1960
  {
1961
1961
  key: 'q.stopping',
@@ -1994,8 +1994,8 @@ export const SYSTEM_GUIDE = [
1994
1994
  kind: 'button',
1995
1995
  en: 'Edit',
1996
1996
  bg: 'Редактирай',
1997
- doesEn: 'Opens a waiting task in the form below, to change it.',
1998
- doesBg: 'Отваря чакаща задача във формата отдолу, за да се промени.',
1997
+ doesEn: 'Opens a waiting task in the form below, to change it. One that carries on in its own chat starts over in a new chat when what it does is changed; a new name or what it depends on keeps it carrying on.',
1998
+ doesBg: 'Отваря чакаща задача във формата отдолу, за да се промени. Задача, която продължава в своя чат, започва отначало в нов чат, когато се промени това, което прави; ново име или зависимости я оставят да продължи.',
1999
1999
  },
2000
2000
  {
2001
2001
  key: 'q.up',
@@ -2217,8 +2217,8 @@ export const SYSTEM_GUIDE = [
2217
2217
  kind: 'note',
2218
2218
  en: 'While a message is at work, a change here takes effect at once where it can: the rules a step is judged by, the limits, the pauses and the reports. The models, plan mode, the project, the skills and the like apply from the next message; the chat window\'s own settings from the next time it opens.',
2219
2219
  bg: 'Докато работи съобщение, промяна тук влиза в сила веднага, където може: правилата, по които се преценява всяка стъпка, ограниченията, паузите и отчетите. Моделите, режимът с план, проектът, уменията и други такива важат от следващото съобщение, а настройките на самия прозорец на чата — от следващото му отваряне.',
2220
- doesEn: 'A setting saved while a message is at work: the rules a step is judged by (programs, scripts, downloads, deny patterns…), the limits, pauses and reports, the locators and the steps to the chat take effect at once, in the open Copilot window too; the models, plan mode, the folder, the project and the skills from the next message; the window\'s address, browser and waits when it opens again.',
2221
- doesBg: 'Настройка, записана докато работи съобщение: правилата за стъпките (програми, скриптове, изтегляния, забранени шаблони…), ограниченията, паузите и отчетите, локаторите и стъпките до чата важат веднага, и в отворения прозорец на Copilot; моделите, „Първо план“, папката, проектът и skill-овете — от следващото съобщение; адресът, браузърът и изчакванията на прозореца — когато се отвори отново.',
2220
+ doesEn: 'A setting saved while a message is at work: the rules a step is judged by (programs, scripts, downloads, deny patterns…), every limit, the pauses and reports, the locators, the steps to the chat and the window\'s waits take effect at once, in the open Copilot window too; the models, plan mode, the folder, the project and the skills from the next message; the window\'s address and browser when it opens again.',
2221
+ doesBg: 'Настройка, записана докато работи съобщение: правилата за стъпките (програми, скриптове, изтегляния, забранени шаблони…), всички ограничения, паузите и отчетите, локаторите, стъпките до чата и изчакванията на прозореца важат веднага, и в отворения прозорец на Copilot; моделите, „Първо план“, папката, проектът и skill-овете — от следващото съобщение; адресът и браузърът на прозореца — когато се отвори отново.',
2222
2222
  },
2223
2223
  {
2224
2224
  key: 'live.close',
@@ -2591,8 +2591,8 @@ export const SYSTEM_GUIDE = [
2591
2591
  kind: 'button',
2592
2592
  en: 'Check the locators',
2593
2593
  bg: 'Провери локаторите',
2594
- doesEn: 'Opens the Copilot window, as reading the models does, and looks for each locator: the box and Send, the sidebar, the newest conversation (opened by its address) and its "More" menu (opened and closed again), and the steps to the chat. It only reads; nothing is sent or renamed. Under each field: found, not found (then in red, with the file for a chatbot), or not on the page then and why.',
2595
- doesBg: 'Отваря прозореца на Copilot, както при четенето на моделите, и търси всеки локатор: полето и „Send“, страничната лента, най-новия разговор (отворен по адреса му) и менюто му „More“ (отворено и затворено пак), и стъпките до чата. Само чете; нищо не се изпраща и не се преименува. Под всяко поле: намерен, не е намерен (тогава в червено, с файла за чатбота) или не е на страницата тогава и защо.',
2594
+ doesEn: 'Opens the Copilot window and looks for each locator — the box and Send, the sidebar, the newest conversation and its "More" menu (opened and closed again) — and the steps to the chat. It only reads; nothing is sent or renamed. Under each field: found, not found (in red, with the file for a chatbot), or not on the page then and why.',
2595
+ doesBg: 'Отваря прозореца на Copilot и търси всеки локатор — полето и „Send“, страничната лента, най-новия разговор и менюто му „More“ (отворено и затворено пак) — и стъпките до чата. Само чете; нищо не се изпраща и не се преименува. Под всяко поле: намерен, не е намерен (в червено, с файла за чатбота) или не е на страницата тогава и защо.',
2596
2596
  },
2597
2597
  {
2598
2598
  key: 'chatloc.composer',
@@ -120,6 +120,14 @@ export function mergeItems(current, edited) {
120
120
  // A parked task keeps what it waits for; its answer is given on its card, not by an edit of the list.
121
121
  if (was.status === 'parked')
122
122
  return { ...was, ...given, status: 'parked' };
123
+ /*
124
+ * A task that carries on in its own chat (`resume`: the queue stopped or the bot closed under it, or answered after it
125
+ * was set aside) carries on as it was given there, so an edit of what it does was kept and never used (bug hunt
126
+ * 2026-11-18). Such an edit starts it over, as "Run again" does, with the edit; its name and what it depends on are
127
+ * the queue's own, and leave it carrying on.
128
+ */
129
+ if (was.resume && WHAT_IT_DOES.some((key) => asSaid(was[key]) !== asSaid(given[key])))
130
+ return { ...given, status: 'waiting' };
123
131
  // Where it works changed: the branch made for it no longer is its.
124
132
  if (was.branch !== given.branch) {
125
133
  const { branchName: _name, branchBase: _base, ...rest } = was;
@@ -135,6 +143,10 @@ export function mergeItems(current, edited) {
135
143
  }
136
144
  /** What the operator gives a task, apart from what its runs give it. */
137
145
  const GIVEN = ['id', 'name', 'prompt', 'model', 'dependsOn', 'branch', 'review', 'reviewModel', 'lead', 'workerModel', 'skill', 'plan'];
146
+ /** Of what is given, what the task's chat is told: an edit of it starts over a task that carries on. */
147
+ const WHAT_IT_DOES = ['prompt', 'model', 'branch', 'review', 'reviewModel', 'lead', 'workerModel', 'skill', 'plan'];
148
+ /** A field as an edit says it: off, empty or left out are the same. */
149
+ const asSaid = (v) => JSON.stringify(v === false || v === '' || v === null ? undefined : v) ?? '';
138
150
  function asGiven(x) {
139
151
  const out = {};
140
152
  for (const key of GIVEN)
@@ -185,6 +197,13 @@ export function skippedBecause(because) {
185
197
  const what = because.status === 'failed' ? 'failed' : because.status === 'stopped' ? 'was stopped' : because.status === 'skipped' ? 'was skipped' : `has not run (${because.status})`;
186
198
  return `it depends on "${itemTitle(because)}", which ${what}`;
187
199
  }
200
+ /**
201
+ * Whether the queue holds a chat for this task: set aside with its card, or carrying on in it at its next turn. A task
202
+ * the queue lets go of — taken out, run again, started over — has its chat's card closed (2026-11-19).
203
+ */
204
+ export function holdsChat(x) {
205
+ return !!x.sessionId && (x.status === 'parked' || (x.status === 'waiting' && x.resume === true));
206
+ }
188
207
  /** A task's status from how its message ended. */
189
208
  export function statusOfTask(taskStatus) {
190
209
  return taskStatus === 'done' ? 'done' : taskStatus === 'aborted' ? 'stopped' : 'failed';