fix(web): restore composer tasks after relaunch #8097
Closedsethwebster(GitHub profile, opens in a new tab)wants to merge 20 commits into
main fromrefs/pull/8097/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:XS
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- apps/server/src/persistence/Migrations/042_ProjectionThreadPlanActivityIndex.test.ts lines 17 to 17Resolvedby sethwebster(GitHub profile, opens in a new tab)@@ -0,0 +1,17 @@1+import { assert, it } from "@effect/vitest";2+import * as Effect from "effect/Effect";3+import * as Layer from "effect/Layer";4+import * as SqlClient from "effect/unstable/sql/SqlClient";5+6+import { runMigrations } from "../Migrations.ts";7+import * as NodeSqliteClient from "../NodeSqliteClient.ts";8+9+const layer = it.layer(Layer.mergeAll(NodeSqliteClient.layerMemory()));10+11+layer("042_ProjectionThreadPlanActivityIndex", (it) => {12+ it.effect("indexes the latest plan lookup for one thread turn", () =>13+ Effect.gen(function* () {14+ const sql = yield* SqlClient.SqlClient;15+16+ yield* runMigrations({ toMigrationInclusive: 41 });17+ yield* runMigrations({ toMigrationInclusive: 42 });
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- @@ -148,0 +164,21 @@164+ const activePlan = deriveActivePlanState(activities, activeTurnId ?? undefined);165+ if (latestTurnSettled || activeTurnId === null || activePlan?.turnId !== activeTurnId) {166+ return null;167+ }168+169+ const currentStep =170+ activePlan.steps.find((step) => step.status === "inProgress") ??171+ activePlan.steps.find((step) => step.status === "pending");172+ if (!currentStep) {173+ return null;174+ }175+176+ return {177+ progress: {178+ step: currentStep.step,179+ completedSteps: activePlan.steps.filter((step) => step.status === "completed").length,180+ totalSteps: activePlan.steps.length,181+ },182+ steps: activePlan.steps,183+ };184+}
- apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.ts line 1616Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -1602,4 +1611,6 @@16021611 const nextActiveTurnId =16031612 event.type === "turn.started"16041613 ? (eventTurnId ?? null)1605- : event.type === "turn.completed" || event.type === "session.exited"1614+ : event.type === "turn.completed" ||1615+ event.type === "turn.aborted" ||1616+ event.type === "session.exited"
juliusmarminge closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
a19edca3-ec80-4b73-aa30-f7885d406d93You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share