[object Object]

← back to Terminal Status

dot.sh: auto-place window into its colour column on any successful colour paint (Steve: 'all color continue') — all colours, background+best-effort, TS_NO_AUTOPLACE kill-switch

56c764ad07b4846cc9f6861849f0992051a331c7 · 2026-09-17 07:19:05 -0700 · Steve Abrams

Files touched

Diff

commit 56c764ad07b4846cc9f6861849f0992051a331c7
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Thu Sep 17 07:19:05 2026 -0700

    dot.sh: auto-place window into its colour column on any successful colour paint (Steve: 'all color continue') — all colours, background+best-effort, TS_NO_AUTOPLACE kill-switch
---
 integrations/dot.sh | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/integrations/dot.sh b/integrations/dot.sh
index 41de1ca..563b228 100644
--- a/integrations/dot.sh
+++ b/integrations/dot.sh
@@ -71,4 +71,21 @@ case "$rc" in
   124) echo "dot: paint TIMED OUT after ${timeout_s}s (host load) — tab color UNCHANGED" >&2 ;;
   *)   echo "dot: NOT painted (engine rc=${rc}; refusal or error above) — tab color UNCHANGED" >&2 ;;
 esac
+
+# AUTO-PLACE into the colour column (Steve 2026-09-17: "I want all color continue" —
+# as soon as a tab gets a new colour, arrange it into that colour's correct place).
+# Fires ONLY on a successful colour paint (rc=0, not --off), for EVERY colour, via the
+# dot-screen-router's own single-window band math (DSR_MOVE_WINDOW). Runs in the
+# BACKGROUND so it never slows or blocks the paint, and best-effort (any failure is
+# swallowed — placement is cosmetic). The router already tiles all NON-frontmost windows
+# every pass; this covers the frontmost/active window the router deliberately skips, so a
+# tab that just changed its own colour snaps into place immediately. Kill-switch:
+# export TS_NO_AUTOPLACE=1  (also auto-skips if the router skill is absent).
+_rt="$HOME/.claude/skills/dot-screen-router/router.sh"
+if [ "$rc" = 0 ] && [ "$mode" != --off ] && [ -z "${TS_NO_AUTOPLACE:-}" ] && [ -f "$_rt" ]; then
+  ( _wid="$(osascript -e 'tell application "iTerm2" to id of current window' 2>/dev/null)"
+    [ -n "$_wid" ] && DSR_MOVE_WINDOW="$_wid" bash "$_rt" >/dev/null 2>&1
+  ) >/dev/null 2>&1 &
+fi
+
 exit "$rc"

← a1d75ad backfill: honest heartbeat verdict (kill the hardcoded-PASS  ·  back to Terminal Status  ·  iterm_sessions: cross-process cache collapses the enum herd 2a0da77 →