From 627485ecf12991c08340c69c999a117dfb24eebb Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 7 Apr 2026 09:01:46 +0300 Subject: feat: reverse alias IDs for better shell tab-completion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Alias IDs are now stored in reversed form (e.g. id=37 → "10" instead of "01") so that the first character varies quickly across consecutive IDs, making shell auto-completion more effective. The counter logic is unchanged; only the string representation is reversed via a new reverseString helper in encodeTaskAliasID/decodeTaskAliasID. The cache file is bumped to task-aliases-v2.json so existing mappings are abandoned and all aliases are regenerated with the new format. Also fix TestDispatcher_CompleteUUIDsSubcommand to use an isolated temp dir for the alias cache, preventing flakiness from cross-test pollution. Co-Authored-By: Claude Sonnet 4.6 --- cmd/ask/ask | Bin 4321591 -> 4322459 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to 'cmd') diff --git a/cmd/ask/ask b/cmd/ask/ask index a7c597a..cffc885 100755 Binary files a/cmd/ask/ask and b/cmd/ask/ask differ -- cgit v1.2.3