Skip to content

Stuck#30

Merged
JaredforReal merged 3 commits into
mainfrom
stuck
May 2, 2026
Merged

Stuck#30
JaredforReal merged 3 commits into
mainfrom
stuck

Conversation

@JaredforReal
Copy link
Copy Markdown
Owner

No description provided.

Signed-off-by: JaredforReal <w13431838023@gmail.com>
Signed-off-by: JaredforReal <w13431838023@gmail.com>
Signed-off-by: JaredforReal <w13431838023@gmail.com>
Copilot AI review requested due to automatic review settings May 2, 2026 19:40
@JaredforReal JaredforReal merged commit 8f48a16 into main May 2, 2026
5 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses “stuck” envelopes and updates the review workflow naming by renaming waiting_approval to in_review, adding startup recovery for envelopes left in processing, and adjusting session lifecycle handling so envelopes only enter processing when a session actually starts running.

Changes:

  • Rename envelope status WAITING_APPROVALIN_REVIEW across backend, CLI, WebUI, and tests, with a DB migration to rewrite existing rows.
  • Add Store.reset_processing_to_pending() and call it on daemon startup to recover envelopes stuck in PROCESSING.
  • Add a QUEUED session status + session on_start callback to transition envelopes to PROCESSING when a queued session acquires a concurrency slot.

Reviewed changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/test_webui.py Update status expectations from waiting_approval to in_review.
tests/test_store.py Update unread-count/status tests; add coverage for resetting PROCESSINGPENDING.
tests/test_orchestrator.py Align dispatch expectations with session spawning behavior.
tests/test_mailbox.py Update persisted agent-log test to use IN_REVIEW.
tests/test_cli.py Update default envelope status + CLI output assertions to in_review.
loom/webui/frontend/src/lib/types.ts Update frontend EnvelopeStatus union to in_review.
loom/webui/frontend/src/lib/api.ts Change envelope listing query construction; now requests limit=10000.
loom/webui/frontend/src/index.css Rename CSS status token from --status-waiting to --status-review.
loom/webui/frontend/src/components/KanbanBoard.tsx Rename “Waiting Approval” column to “In Review” and update grouping key.
loom/webui/frontend/src/components/Column.tsx Update status color/token mapping to use review tokens/classes.
loom/webui/frontend/src/components/ActionsPanel.tsx Update approve eligibility to in_review.
loom/state/store.py Add migration to rewrite waiting_approvalin_review; update unread counts; add reset method.
loom/orchestrator/session.py Introduce SessionStatus.QUEUED and on_start callback invoked when a session begins running.
loom/orchestrator/dispatcher.py Move envelope PROCESSING transition to session-start callback; transition to IN_REVIEW on completion.
loom/daemon.py Wire session start callback and reset stuck PROCESSING envelopes at startup.
loom/core/envelope.py Rename enum member to IN_REVIEW.
loom/cli/view/theme.py Update CLI theme keys and status glyph/style mapping for IN_REVIEW.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +12 to +15
const params = new URLSearchParams()
if (source) params.set("source", source)
params.set("limit", "10000")
return jsonFetch<Envelope[]>(`/api/envelopes?${params}`)
Comment thread loom/daemon.py
Comment on lines +335 to 337
# Wire session lifecycle callbacks
session_mgr._on_start = dispatcher.handle_session_start
session_mgr._on_complete = dispatcher.handle_session_complete
Comment on lines 24 to 28
--radius: 0.5rem;
--status-queue: 215 16% 57%;
--status-processing: 221 83% 53%;
--status-waiting: 38 92% 50%;
--status-review: 38 92% 50%;
--status-done: 142 71% 45%;
Comment on lines +26 to +28
bg: "bg-[hsl(var(--status-review)/0.08)]",
dot: "bg-status-review",
label: "text-[hsl(var(--status-review))]",
@JaredforReal JaredforReal deleted the stuck branch May 2, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants