Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/presentation/dashboard/src/data/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ export const typedActionProposalSchema = z.object({
validation_evidence: z.array(z.string().refine((value) => value.trim().length > 0, "Validation evidence must be non-blank text")),
available_transitions: z.array(z.enum(["apply", "cancel", "regenerate", "reject", "defer"])),
status: z.enum(["preview_ready", "applying", "gated", "failed", "rejected", "deferred", "cancelled", "stale", "applied"]),
task_execution_dispatch_pending: z.literal(true).optional(),
receipt: z.record(z.string(), z.unknown()).nullable(),
stale: z.record(z.string(), z.unknown()).nullable(),
gate: z.record(z.string(), z.unknown()).nullable().optional(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,9 @@ export function ContextDrawer({ agents, attentionHistory = [], onSelectAttention
<h3>{selection.item.title}</h3>
{selection.item.todoId && (selection.item.actionKind === "gate.resolve" || selection.item.actionKind === "todo.update")
? <div className="personal-attention-meta"><AttentionProvenance detail={proposalRequests.length === 1 ? proposalRequests[0].details : undefined} /></div> : null}
{selection.item.impact ? <p>{selection.item.impact}</p> : null}
{selection.item.reviewPlan?.retryOriginal && selection.item.errorMessage
? <p className="personal-proposal-state is-error" role="status">{selection.item.errorMessage}</p>
: selection.item.impact ? <p>{selection.item.impact}</p> : null}
{selection.item.reviewPlan && !selection.item.reviewPlan.creationExecution && !selection.item.reviewPlan.retryOriginal && !taskExecution && selection.item.actionKind !== "team.plan" && !(decisionFrame && ["ready", "applied"].includes(selection.item.status)) ? <p className="personal-proposal-explainer" data-action-review={selection.item.reviewPlan.interaction}>{operationUnknown
? t("actionReview.operation_reconcile_original")
: selection.item.reviewPlan.operationFrame?.kind === "inactive"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1832,10 +1832,21 @@ export function PersonalWorkspacePage({
// not have a Turn to revisit.
.filter(proposal => proposal.actionKind !== "todo.create" || proposal.status !== "applied"
|| Boolean(proposal.reviewPlan?.taskExecution));
const restored = Object.fromEntries(restoreable.map((proposal) => [proposal.previewId, proposal]));
const previousIds = restoredProposalIdsRef.current;
restoredProposalIdsRef.current = new Set(Object.keys(restored));
setProposals((current) => ({...Object.fromEntries(Object.entries(current).filter(([id]) => !previousIds.has(id))), ...restored}));
restoredProposalIdsRef.current = new Set(restoreable.map(proposal => proposal.previewId));
setProposals((current) => {
const next = Object.fromEntries(Object.entries(current).filter(([id]) => !previousIds.has(id)));
for (const proposal of restoreable) {
const previous = current[proposal.previewId];
// The stored confirmation outlives a failed dispatch attempt.
// Keep the local reason until readback observes a different confirmation.
const retryError = proposal.reviewPlan?.retryOriginal && previous?.reviewPlan?.retryOriginal
&& previous.actionKind === proposal.actionKind && previous.goalId === proposal.goalId
&& previous.updatedAt === proposal.updatedAt ? previous.errorMessage : undefined;
next[proposal.previewId] = retryError ? { ...proposal, errorMessage: retryError } : proposal;
}
return next;
});
// The manager conversation shows the cards this channel offered: a team
// plan the steward proposed from here is confirmed here, instead of the
// owner hunting for the Goal whose workspace happens to hold the card.
Expand Down Expand Up @@ -2140,7 +2151,7 @@ export function PersonalWorkspacePage({
: null;
const lifecycleChange = options.lifecycleProjection ?? inferredLifecycleChange;
setActionFeedback(t("feedback.applying", { title: proposal.title }));
const applying = { ...proposal, reviewPlan: proposal.reviewPlan ? { ...proposal.reviewPlan, interaction: "pending" as const, reason: "apply_pending" as const, canApply: false as const } : undefined, status: "applying" as const };
const applying = { ...proposal, errorMessage: undefined, reviewPlan: proposal.reviewPlan ? { ...proposal.reviewPlan, interaction: "pending" as const, reason: "apply_pending" as const, canApply: false as const } : undefined, status: "applying" as const };
setProposals((current) => ({ ...current, [proposal.previewId]: applying }));
if (showDrawer) setSelection({ item: applying, kind: "proposal" });
let applyingSelection = selectionRevision.current;
Expand Down
5 changes: 5 additions & 0 deletions loopx/canary/module_metric_baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
"loopx/capabilities/issue_fix/pr_lifecycle.py": {
"lines": 2056
},
"loopx/capabilities/native_chat/conversation_bindings.py": {
"any_count": 0,
"dict_any_count": 0,
"lines": 1108
},
"loopx/capabilities/reward_memory/utility_reducer.py": {
"any_count": 0,
"dict_any_count": 0,
Expand Down
Loading
Loading