Skip to content

fix(progress): Keep the pill's popover open on the next question after a send - #147

Merged
stevecastaneda merged 17 commits into
stevecastaneda:mainfrom
joshuabke:fix-progress-popover-next
Nov 28, 2026
Merged

stevecastaneda merged 17 commits into
stevecastaneda:mainfrom
joshuabke:fix-progress-popover-next

Conversation

@joshuabke

@joshuabke joshuabke commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Builds on #146 (feat-progress-ticket-progress, rebased on main). The base stays main because #146's branch lives in a fork, so the diff here also shows #146's commits. Only two commits belong to this PR: "keep the pill's popover open on the next question after a send" and "don't count a held answer as given when the popover steps on". Later #146 commits come in by merge.

Why

Answering several questions from the pill above the message box meant reopening the popover after every send: Send closed it, and only the next open landed on the next question.

What changed

  • After a send in the popover, it stays open and shows the next question that still waits for an answer: the ones after it first, then from the top. It closes, as before, once no such question is left.
  • Copy still closes the popover, because the copied answer goes into the message box next.

Scope

A question counts as answered when its answer is sent or queued (the same check ChoiceButtons uses for a done Send button), or when it was sent while this popover was open (the dashboard catches up a moment later, so a quick second send can't step back to it). A held answer never went out, for example after the plugin restarted, so its question still counts as waiting and the popover steps to it. The changelog line sits under 1.18.0, which #146 introduces.

Blast Radius

client/pill-popover.tsx only: the pill's popover. The panel's question dialogs are unchanged.

Verification

  • npm test in progress/, with TMPDIR outside the repo: 314 pass. New test "a send steps to a question whose answer is held, but past a queued one" fails without the held-answer fix (the popover closes) and passes with it. The earlier tests for staying open, closing after the last send, and skipping answered questions with a wrap to an earlier one stay.
  • npm run typecheck and oxfmt --check . in progress/, and npm run lint (oxlint) at the repo root pass.
  • Not checked in the Paseo app after the rebase.

Security review

Maintainer update. This report replaces the original one. It covers 47c86b4, which merges main after #146 shipped as 1.18.0 and moves this fix to 1.18.1.

No release blockers found.

Full report

Security review: @stevecastaneda/paseo-progress@1.18.1

  • Reviewer: claude --model opus
  • Commit: 47c86b4
  • Tree: e87bc487f5ab1143f31e4eba9170f24ccc48e8b2
  • Diff: c9ac3df..47c86b4 -- progress/
  • Date: 2026-11-28T19:33:50.777Z
  • Minutes: 1.5
  • Key: f32afe807488ef11039b3b850d7bddde9ea8530c365cfbe5124d8721032f0a87

I found no release blockers in 1.18.1.

Scope and method: I reasoned everything from the source and ran nothing. I had no shell, so I did not run the tests or npm pack. I read the changed client/pill-popover.tsx and what it reaches: the QuestionDetail and SendOrCopy components in client/questions.tsx, plus client/send-answer.ts, shared/answers.ts and the answer-sending path in server/answers.ts. I also went through the shipped server and client code that touches files, programs, HTML or the network.

What changed: only client-side state in the popover. After a Send, the popover now steps to the next question that has no answer out yet, instead of closing. That uses a per-mount sent set and a "next waiting" lookup that wraps to the top (client/pill-popover.tsx:184, :201-202, :246-252). It adds no new file, program, HTML or network calls.

One edge case, not a blocker: because the popover now stays open, a fast double-click on a Send button can land on the next question's button in the same spot. That would send something like Q2 A without the user meaning to. It doesn't break items 1 to 4:

  • The message is only a plain question id plus a letter, or the user's own typed words. answerMessage (shared/answers.ts:33-46) refuses ids that aren't plain Q<n>, so no agent-written text goes out under the user's name.
  • It only goes to the agent that asked, and only if that agent is in the same workspace (questions.tsx:441, server/answers.ts:174).
  • It runs no code, writes no file, sends no private data, and puts nothing in the plugin's trusted UI.

Places that touch files, programs, HTML or the network

  • server/system.ts runProgram / runCommandLine: the only place programs start. They start in Node's own folder (LAUNCH_FOLDER), never the worktree, so Windows' current-folder lookup can't pick up a program the repo committed.
  • server/system.ts writeFileIn / appendFileIn / removeIn / removeLinkIn / makeFoldersIn: names containing .. or absolute paths are refused, and no folder along the way may be a symlink. Atomic writes rename over a link instead of writing through it.
  • server/open.ts:29-60 (Open on host): fixed commands (explorer, xdg-open, open, plutil) get arguments, not a shell line. The file opened is the real path, checked to be inside the worktree's real path (:77-81), and only images, video, audio, PDFs and text open (:89). So a link named like a picture can't hand a script to the default app.
  • server/open.ts:120-186 (preview and video/PDF chunks): an attachment is found only by a reference recorded in the progress file, then checked by real path to be inside the worktree, so no outside or arbitrary path is read. HTML is never previewed (:131). Folder listings skip dotfiles. Sizes are capped.
  • server/progress-file.ts:58-201 (progress.jsonl, lock, panel-opened marker): these live in the plugin's state folder under the user's home, named by a hash of the worktree's real path. They never go in the repo or .git, and the lock goes through the same guarded helpers.
  • server/store.ts:15-17 (git) and :118-121 (saved runs): git -C runs through runProgram. Saved runs are written under the worktree's real path with makeFoldersIn, which stops at any link or file in the way, and with a rename that replaces a link instead of following it.
  • server/answers.ts:204, server/question-mode.ts:33,64, server/whats-new.ts:109: state files in the plugin's own state folder (answers saved with mode 0600), all through writeFileIn / removeIn.
  • server/answers.ts:170-181 (sending an answer to the agent): only to the agent named on the question, only if it is in the same workspace and not archived. The message comes from answerMessage, so it carries no agent-written text.
  • server/skill.ts:83-149 (skill install, paseo plugin ls): writes to the user's skill folders through the guarded helpers. It runs a paseo program found by the plugin's own launcher code, starting in LAUNCH_FOLDER. This code is unchanged.
  • server/launcher.ts:135: writes the plugin's own launcher scripts through writeFileIn with content the plugin generates. Unchanged.
  • client/attachments.tsx:66-84 (links): URLs must be http or https, enforced by the event schema (shared/events.ts:31), and open through Paseo's browser or openExternalUrl. Local files go through the server checks above.
  • client/attachments.tsx:96-110 (page links): a page opens as a Paseo Markdown link to a file inside the worktree, in Paseo's own preview tab. The plugin itself never renders HTML.
  • client/pdf.tsx, client/video.tsx, client/pieces.ts: PDFs and video play from blob URLs built from bytes the server already checked, in Paseo's DocumentFrame or a <video> tag. No script-running preview gets private files.
  • Markdown and agent text in the popover and panel: shown with React Native Text and Paseo's Markdown component, never injected as raw HTML. Answers already given are shown as given, not as the user's own work.
  • client/questions.tsx:31-43 (Copy): clipboard only, and only on the user's click. The copied text includes the agent's question title, which the user sees before pasting.
  • client/pill-popover.tsx (changed): popover state only. It reaches the Send path above and adds no new access.

No release blockers found.

@steve-dev-bot steve-dev-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks, this is a nice quality-of-life fix. Answering several questions in a row from the pill is much smoother now. I checked it in a private copy of Paseo with two questions waiting. Before, Send closed the popover. With this branch it moves to the next question ("Question 2 of 2") and closes after the last one, exactly as described. The type check and all 297 tests pass at the head, and the security report in the description matches this head commit.

Two things before it can go in:

  1. It needs a rebase once #146 is reworked. This branch carries all of #146, which needs changes for the per-workspace progress file that landed on main in #152 (details in my review there). Main has also shipped 1.17.0 and 1.17.1 since, so the changelog line here should move under the new version.
  2. A held answer counts as answered. nextWaiting skips any question with given set, but given also covers answers in the held state. A held answer is one that never went out, for example after the plugin restarted, and its Send button stays enabled so the user can send it again. With the current check, the popover can step past a question that still needs the user. Checking given.state === "sent" || given.state === "queued" (the same test ChoiceButtons uses for done) would fix it.

Thanks again. Happy to look at it again after the rebase.

@joshuabke
joshuabke force-pushed the fix-progress-popover-next branch from 67e4019 to 189ae49 Compare November 28, 2026 00:07
joshuabke and others added 8 commits November 28, 2026 01:11
…it on a readable line; bound past ETAs and real dates

- An agent's report or ticker line replaces only its own earlier line, so its
  last line still marks where it last saw the run and the "Another session
  added" notice comes once. A report never folds past another agent's report
  on the same ticket, which would reorder their fields.
- An unreadable line tagged with a workspace no longer counts as where that
  workspace split off, matching workspaceView.
- --eta refuses times more than a year in the past and dates past the month's
  end, like February 30.
- --detail is cut at 200 characters, not UTF-16 units, so no emoji is split.

@steve-dev-bot steve-dev-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks, Joshua! The held-answer fix works. A question whose answer is held now comes up next, and Send steps to the next question that still needs an answer. In screenshots of the popover, sending Q3 moves it to Q4, and sending Q4 closes it.

#146 shipped on its own as 1.18.0, so I merged main into this branch and moved your changelog line under a new 1.18.1, with the version bumped to match. Typecheck, all 315 tests, the format check and lint pass. The security review of the change since 1.18.0 found no release blockers, and I've swapped it into the description.

One optional follow-up, not blocking: onSent fires when Send is pressed, before the server replies. So if a send fails or ends up held while the popover is open, the popover still counts that question as answered and can close while it waits. The error toast and the pill count still show it, and 1.18.0 closes after every send anyway, so this is no worse. Counting a question as answered only once the server confirms the send would close that gap.

@stevecastaneda
stevecastaneda merged commit c5170b2 into stevecastaneda:main Nov 28, 2026
1 check passed
@steve-dev-bot

Copy link
Copy Markdown
Collaborator

Thanks again, Joshua! This is out in Progress 1.18.1 on npm. Sending an answer from the pill's popover now moves straight to the next question still waiting, so you can answer several in a row without reopening it.

The Paseo plugin store still lists 1.17.1 until its review catches up, so paseo plugin update won't reach 1.18.1 yet. To get it now, run paseo plugin remove progress, then paseo plugin add npm:@stevecastaneda/paseo-progress.

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.

3 participants