Skip to content

Commit 362174a

Browse files
ZeroPoint95claude
andauthored
scripts: the hosted drive reads the task column's key as opt+l on a Mac (#1756)
* scripts: the hosted drive reads the task column's key as opt+l on a Mac The drive decided whether the side column was open by looking for `alt+l` in its header, but a Mac draws that key as `opt+l`. On a profile whose column starts open, which is every fresh one, the drive read the open column as closed and pressed the key that closes it, and seven of its fourteen checks then failed against a binary with nothing wrong with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * changelog: 1756 entry Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 0dbeccf commit 362174a

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
kind: fixed
3+
title: the hosted drive passes on a Mac whose task column starts open
4+
pr: 1756
5+
surface: [build]
6+
invalidates:
7+
- "On a Mac, scripts/hosted-drive.sh failed seven of its fourteen checks whenever the profile's task column started open, which reads as a broken binary. It now recognises the column's opt+l key and passes."
8+
---

‎scripts/hosted-drive.sh‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,11 @@ only_my_file() { [ "$(git -C "$WORK" status --short)" = "?? notes.txt" ]; }
238238
one_copy() { [ "$(copies | wc -l | tr -d ' ')" = "1" ]; }
239239
second_on_the_list() { screen | cut -c119- | grep -q 'write README'; }
240240
first_on_the_list() { screen | cut -c119- | grep -q 'add Mul and Div'; }
241-
column_open() { screen | grep -Eq '│ Tasks [0-9]+.*alt\+l'; }
241+
# THE COLUMN'S KEY IS SPELLED FOR THE KEYBOARD IT IS DRAWN ON: `alt+l` on
242+
# Linux and `opt+l` on a Mac (internal/tui3/chords.go). A needle that knows
243+
# only one spelling reads an open column as closed on the other system, and the
244+
# key pressed to open it closes it instead.
245+
column_open() { screen | grep -Eq '│ Tasks [0-9]+.*(alt|opt)\+l'; }
242246
first_run_home() { [ -f "$WORK/README.md" ] && [ -f "$WORK/muldiv.go" ]; }
243247
one_new_commit() { [ "$(git -C "$WORK" log --oneline | wc -l | tr -d ' ')" = "2" ]; }
244248
my_file_untouched() { [ "$(cat "$WORK/notes.txt")" = "mine, unsaved" ] && only_my_file; }

0 commit comments

Comments
 (0)