Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .kilo_workflow/e2e-slot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ SELF_WORKTREE=$(git -C "$(dirname "$0")" rev-parse --show-toplevel 2>/dev/null |
# started by hand in a personal worktree is reported, never stopped.
is_section_slug() { [[ "$1" =~ -[0-9a-f]{4}$ ]]; }

stack_session() { echo "kilo-dev-$(basename "$1" | tr -c 'A-Za-z0-9_-' '_')"; }
# `\n` stays in the preserved set on purpose: without it `tr` rewrites the
# trailing newline `basename` emits into `_`, which `$(...)` can no longer
# strip, and every session name comes back with a spurious trailing underscore.
stack_session() { echo "kilo-dev-$(basename "$1" | tr -c 'A-Za-z0-9_-\n' '_')"; }

# Is any held slot entitled to this stack session? The recorded worktree is the
# real answer; the owner-name prefix is a fallback so slots written before
Expand Down