You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The npm access token lives in `/Users/wangshuai/Downloads/npm_access_token.txt`; use the most recently issued token in that file.
19
+
- Use the token only via environment variables or throwaway publish-time config (e.g. `//registry.npmjs.org/:_authToken`); **never write it into the repo or commit it**; local `.npmrc` must stay out of git.
20
+
- Publish with `npm publish`, then confirm via `npm view opencode-plugin-loop version`.
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,10 +29,10 @@ A drop-in `/loop` command for [opencode](https://opencode.ai), modeled after Cla
29
29
-**Auto-expire** — tasks idle for more than 7 days are removed on load (active tasks never expire)
30
30
-**Max 50 concurrent tasks**
31
31
-**LLM-callable tools** — `loop_schedule`, `loop_status` (session-bound by default)
32
-
-**Interactive Loop results** — `/loop` results open in a dedicated native dialog instead of writing over the prompt
32
+
-**Interactive task list** — `/loop list` and `/loop status` open a dedicated native dialog with selectable task rows instead of writing over the prompt; start/cancel/pause/resume stay silent, failures surface as error toasts
33
33
-**Clipboard actions** — copy the complete result or copy any displayed task ID with one action
34
34
-**Keyboard and mouse navigation** — move with `Up`/`Down` or `Tab`/`Shift+Tab`, hover with the pointer, and activate with `Enter`, `Space`, or a click
35
-
-**Responsive layout** — short or narrow terminals keep the dialog inside the viewport with independently scrollable result and action areas
35
+
-**Responsive layout** — short or narrow terminals keep the dialog inside the viewport with a scrollable task list
36
36
-**Easy dismissal** — choose **Close**, press `q`, or use the native dialog's `Esc` key
37
37
38
38
## Requirements
@@ -187,15 +187,15 @@ If you try `cancel <id>` for a task owned by another session, you'll get a refus
187
187
188
188
Two behavioral differences worth knowing: tasks only fire for the **currently active session** (switch sessions and the others wait; switch back and they catch up once), and fixed tasks fire on a 5-second ticker rather than exact wall-clock cron times (up to one ticker period late).
189
189
190
-
### Interactive result dialog
190
+
### Interactive task list dialog
191
191
192
-
Every `/loop` command result opens in a separate native OpenCode dialog. It keeps task output away from the prompt and provides:
192
+
`/loop list` and `/loop status` open a native OpenCode dialog rendering your tasks as a selectable, color-coded list (▶ active, ⏸ paused). Starting, cancelling, pausing, or resuming a task stays silent; failures surface as error toasts. The dialog provides:
193
193
194
-
-**Copy ID: `<taskId>`**for every distinct task shown in the result
194
+
-A highlighted **task row**per task — press `Enter` to copy its task ID
195
195
-**Copy all** for the exact complete result text
196
196
-**Close** to dismiss the dialog
197
197
198
-
Use `Up`/`Down` or `Tab`/`Shift+Tab` to change the selected action, then press `Enter` or `Space` to activate it. Moving the mouse over a row selects it, and clicking activates that exact row. A successful **Copy ID** or **Copy all** action shows a confirmation and closes the dialog immediately; if clipboard access fails, the dialog stays open and shows an error. Press `Page Up` or `Page Down` to scroll long result text, or press `q` or `Esc` to close. In short or narrow terminals, the dialog scales to the available viewport and keeps the result and action lists independently scrollable. A newer Loop result replaces the previous Loop dialog rather than stacking another one.
198
+
Use `Up`/`Down` or `Tab`/`Shift+Tab` to change the selected row, then press `Enter` or `Space` to activate it. Moving the mouse over a row selects it, and clicking activates that exact row. A successful copy shows a confirmation and closes the dialog immediately; if clipboard access fails, the dialog stays open and shows an error. Press `Page Up` or `Page Down` to scroll long lists, or press `q` or `Esc` to close. In short or narrow terminals, the dialog scales to the available viewport and keeps the list scrollable. A newer Loop result replaces the previous Loop dialog rather than stacking another one.
0 commit comments