offsite 0.0.41 → 0.0.42
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/apps/server/dist/main.mjs +8 -1
- package/apps/server/dist/main.mjs.map +1 -1
- package/apps/web/dist/assets/{dist-fLTPb8e0.js → dist-BRNbPpUx.js} +1 -1
- package/apps/web/dist/assets/{index-Dvjspoom.css → index-Bw3cJKrf.css} +1 -1
- package/apps/web/dist/assets/{index-BXRn07Vg.js → index-CEcok5lo.js} +56 -56
- package/apps/web/dist/index.html +2 -2
- package/apps/web/dist/sw.js +1 -1
- package/package.json +1 -1
|
@@ -1003,8 +1003,11 @@ function activity() {
|
|
|
1003
1003
|
for (const run of runs.values()) result[run.sessionId] = {
|
|
1004
1004
|
running: run.running,
|
|
1005
1005
|
waiting: run.pending.size > 0,
|
|
1006
|
+
approval: [...run.pending.values()].some((pending) => pending.request.kind === "approval" || pending.request.kind === "plan"),
|
|
1007
|
+
question: [...run.pending.values()].some((pending) => pending.request.kind === "question"),
|
|
1006
1008
|
prompted: run.prompted,
|
|
1007
1009
|
compacting: run.compacting,
|
|
1010
|
+
backgroundAgent: run.backgroundAgents > 0,
|
|
1008
1011
|
tasks: run.tasks
|
|
1009
1012
|
};
|
|
1010
1013
|
return result;
|
|
@@ -1191,6 +1194,7 @@ var CodexRun = class CodexRun {
|
|
|
1191
1194
|
prompted = false;
|
|
1192
1195
|
compacting = false;
|
|
1193
1196
|
backgroundTasks = 0;
|
|
1197
|
+
backgroundAgents = 0;
|
|
1194
1198
|
tasks = {};
|
|
1195
1199
|
activeAt = Date.now();
|
|
1196
1200
|
model;
|
|
@@ -2205,6 +2209,7 @@ var OpenCodeRun = class OpenCodeRun {
|
|
|
2205
2209
|
prompted = false;
|
|
2206
2210
|
compacting = false;
|
|
2207
2211
|
backgroundTasks = 0;
|
|
2212
|
+
backgroundAgents = 0;
|
|
2208
2213
|
tasks = {};
|
|
2209
2214
|
close;
|
|
2210
2215
|
applied;
|
|
@@ -4035,7 +4040,7 @@ async function createTab(projectId) {
|
|
|
4035
4040
|
minimized: false
|
|
4036
4041
|
});
|
|
4037
4042
|
project.activeTab = id;
|
|
4038
|
-
pty.onData((data) => output(id, terminal, data));
|
|
4043
|
+
pty.onData((data) => output(id, terminal, Buffer.from(data)));
|
|
4039
4044
|
pty.onExit(() => {
|
|
4040
4045
|
terminals.delete(id);
|
|
4041
4046
|
paused.delete(pty);
|
|
@@ -5616,6 +5621,7 @@ var Run = class {
|
|
|
5616
5621
|
prompted = false;
|
|
5617
5622
|
compacting = false;
|
|
5618
5623
|
backgroundTasks = 0;
|
|
5624
|
+
backgroundAgents = 0;
|
|
5619
5625
|
tasks = {};
|
|
5620
5626
|
inbox = [];
|
|
5621
5627
|
wake = null;
|
|
@@ -5830,6 +5836,7 @@ var Run = class {
|
|
|
5830
5836
|
case "background_tasks_changed": {
|
|
5831
5837
|
const live = message.tasks.filter((task) => task.ambient !== true);
|
|
5832
5838
|
this.backgroundTasks = live.length;
|
|
5839
|
+
this.backgroundAgents = live.filter((task) => task.task_type === "local_agent").length;
|
|
5833
5840
|
this.tasks = {
|
|
5834
5841
|
...Object.fromEntries(Object.entries(this.tasks).filter(([, status]) => status !== "running")),
|
|
5835
5842
|
...Object.fromEntries(live.map((task) => [task.task_id, "running"]))
|