Skip to content

Add TODO entry: execute Snips with per-CLI shell and run history#11

Merged
StuartMeeks merged 3 commits into
masterfrom
chore/todo-execute-history
May 30, 2026
Merged

Add TODO entry: execute Snips with per-CLI shell and run history#11
StuartMeeks merged 3 commits into
masterfrom
chore/todo-execute-history

Conversation

@StuartMeeks

Copy link
Copy Markdown
Owner

Summary

  • Documents the next big idea for Snipdeck's surface area: actually run Snips, not just construct their argument strings.
  • Sketches per-CLI shell declaration, a Run action that streams live output into the Snipdeck chrome, and persistent per-Snip execution history.
  • Flags the awkward storage question (the existing "one JSON document" rule was made for snippet definitions, not arbitrary captured output) and the safety / ANSI / cancellation open questions, so future-me has the trade-offs already laid out.

Test plan

  • TODO.md only — no code changes, no build impact.

🤖 Generated with Claude Code

StuartMeeks and others added 3 commits May 30, 2026 00:32
Snipdeck today only constructs commands and copies them. The user wants
to also execute them: each CLI declaring its shell (cmd / PowerShell /
pwsh / bash), live output streaming into the Snipdeck chrome, and a
searchable per-Snip execution history.

Captures the sketch, the storage trade-off (the existing "one JSON
document" rule was scoped to definitions, not arbitrary observation
data — so SQLite specifically for execution history is worth a real
conversation), and the open questions (working dir, env vars, safety
confirmation, ANSI handling, large-output capping).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
A CLI's executable location is useful execution context but must not be
mandatory — Snipdeck has to remain a sensible place to author Snips for a
CLI that isn't installed yet on this machine. Document that the field is
optional, validated only at Run time, and that the working directory
defaults sensibly off the executable when set.

Drops the working-directory open question since it's now part of the
sketch.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The user explicitly wants:
- Custom environment variables per CLI (with Snip-level override). Non-secret
  values stored in the JSON document verbatim; secret values stored via
  Windows DPAPI (current-user scope). This flips the parked 'secret /
  masked parameters' item to 'needed' and accepts the cross-machine-sync
  trade-off (you re-enter secrets per machine — the alternative is plaintext
  in a synced document, which is wrong).
- Free-form labels on each execution, e.g. support ticket IDs. Labels are
  searchable from the history view, settable in the Run dialog, editable
  post-hoc on past runs, and — the productivity unlock — pinnable from the
  shell so every Run during an incident is auto-tagged.

Updates the execution-history record to include Labels and drops the
environment-variables open question since it's now part of the sketch.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@StuartMeeks StuartMeeks merged commit 5a86241 into master May 30, 2026
4 checks passed
@StuartMeeks StuartMeeks deleted the chore/todo-execute-history branch May 30, 2026 00:41
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.

1 participant