Skip to content

loopway 2.0 slice 4: the TUI - #500

Merged
mcwhittemore merged 2 commits into
mainfrom
v2-slice-4-tui
Nov 11, 2026
Merged

mcwhittemore merged 2 commits into
mainfrom
v2-slice-4-tui

Conversation

@mcwhittemore

@mcwhittemore mcwhittemore commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #499

A bare loopway in a terminal now opens an Ink TUI on the same poller and in-process thread store. --no-tui, --json, or output that isn't a terminal keeps the plain log.

  • Main view: open threads plus those closed in the last 3 days (by latest message), closed ones dimmed. Each row: bot, thread status, session status, pending count, latest message time, subjects. The poller's latest line is at the bottom. Up/down moves, Enter or right opens.
  • Thread view: subjects, session status, pending updates, sent messages and the session log, which follows new output until you scroll up (PgUp/PgDn/Home, End follows again). Left or Esc goes back.
  • Subject filter: in the thread view, Enter on a subject returns to the main view filtered to the threads holding it, shown in the header. Esc clears it.
  • q or Ctrl-C quits and stops the poller.
  • Slice 3 contract: Thread gains optional session and sent, and the log is read from <state dir>/threads/<id>.log. Missing means no session yet.

How to test it locally

npm install && npm run build
mkdir -p scratch/.loopway && cd scratch
printf -- '---\nrepos: [craftmilldev/loopway-sandbox]\non: issue\n---\nprompt\n' > .loopway/dev.md
printf -- '---\nrepos: [craftmilldev/loopway-sandbox]\non: pull_request\n---\nprompt\n' > .loopway/review.md
npm run cli

Then follow the six steps in #499: open an issue in the sandbox (a dev thread appears, within 2 minutes), comment on it (pending goes up, within 30s), press Enter on it, open a PR saying Closes #<issue> and filter by its subject from the review thread, close the issue, and check npm run cli -- --no-tui and npm run cli | cat.

Live run and screen captures: verifications/500.md. Not run live: a real session status and log, since slice 3 isn't merged.

🤖 Generated with Claude Code

mcwhittemore and others added 2 commits November 10, 2026 16:01
A bare loopway in a terminal opens an Ink TUI: open threads plus those closed in the last 3 days, a thread view with the session log, and a subject filter. --no-tui, --json or piped output keeps the plain log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mcwhittemore
mcwhittemore merged commit 7ff5df9 into main Nov 11, 2026
2 checks passed
@mcwhittemore
mcwhittemore deleted the v2-slice-4-tui branch November 11, 2026 01:44
mcwhittemore added a commit that referenced this pull request Nov 11, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mcwhittemore added a commit that referenced this pull request Nov 11, 2026
* State per .loopway project, in .loopway/state/

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Verification for 504

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Verification 504: test counts after rebase onto #500

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* State under ~/.loopway/state/<slug of the project's .loopway path>

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.0 slice 4: the TUI (threads, thread view, subject filter)

1 participant