devez-vibe 1.6.24 → 1.6.26

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/bin/dvz.exe CHANGED
Binary file
@@ -1062,6 +1062,9 @@ async function createSession(params, resumeId) {
1062
1062
  subagents: new Map(),
1063
1063
  knownSubagents: new Map(),
1064
1064
  hiddenSubagentTasks: new Set(),
1065
+ // level 신호는 CLI 프로세스가 뜰 때 아무것도 보내지 않는다. 새 세션은 빈
1066
+ // 집합에서 시작해야 이전 프로세스의 개수가 남지 않는다.
1067
+ backgroundTasks: 0,
1065
1068
  subagentPulse: null,
1066
1069
  lastContextUsage: null,
1067
1070
  lastContextWindow: 0,
@@ -1753,7 +1756,19 @@ function finishStructuredSubagent(session, message, kind, text) {
1753
1756
  return true;
1754
1757
  }
1755
1758
 
1759
+ // background_tasks_changed는 살아 있는 백그라운드 작업 전체를 담은 level 신호다.
1760
+ // SDK 문서가 못박은 대로 매번 집합을 통째로 갈아끼우고, 시작·완료 edge와는 짝짓지
1761
+ // 않는다. 순서가 보장되지 않아 섞으면 오히려 유령 작업이 남는다. 목록에는 위임
1762
+ // 에이전트뿐 아니라 백그라운드로 돌린 명령도 들어오므로 종류는 가리지 않는다.
1763
+ function emitBackgroundTasks(session, tasks) {
1764
+ const count = Array.isArray(tasks) ? tasks.length : 0;
1765
+ if (count === session.backgroundTasks) return;
1766
+ session.backgroundTasks = count;
1767
+ notify("turn/backgroundTasks/updated", { threadId: session.id, count });
1768
+ }
1769
+
1756
1770
  function syncBackgroundSubagents(session, tasks) {
1771
+ emitBackgroundTasks(session, tasks);
1757
1772
  const live = (Array.isArray(tasks) ? tasks : []).filter((task) => {
1758
1773
  const taskId = firstLine(task?.task_id || "", 80);
1759
1774
  return !taskId || !session.hiddenSubagentTasks?.has(taskId);
@@ -1961,6 +1976,7 @@ function clearSubagents(session) {
1961
1976
  const changed = session.subagents.size > 0;
1962
1977
  session.subagents.clear();
1963
1978
  session.hiddenSubagentTasks?.clear();
1979
+ emitBackgroundTasks(session, []);
1964
1980
  if (session.subagentPulse) {
1965
1981
  clearInterval(session.subagentPulse);
1966
1982
  session.subagentPulse = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devez-vibe",
3
- "version": "1.6.24",
3
+ "version": "1.6.26",
4
4
  "description": "Stable terminal UI for Codex and Claude Agent SDK",
5
5
  "keywords": [
6
6
  "codex",