-
Notifications
You must be signed in to change notification settings - Fork 0
fix: trigger native captive portal popup for Starbucks and Komeda WiFi #705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,8 +5,10 @@ | |
| set -euo pipefail | ||
|
|
||
| # Silently ping neverssl.com - ignore failures (network may be unavailable) | ||
| CURL_OK=false | ||
| if curl -fsS --max-time 10 http://neverssl.com >/dev/null 2>&1; then | ||
| echo "$(date): OK" | ||
| CURL_OK=true | ||
| else | ||
| echo "$(date): FAIL" >&2 | ||
| fi | ||
|
|
@@ -17,7 +19,7 @@ if [[ $OSTYPE == "darwin"* ]]; then | |
|
|
||
| # Check for Starbucks or Komeda networks | ||
| if [[ $SSID == *"STARBUCKS"* ]] || [[ $SSID == *"Komeda_Wi-Fi"* ]]; then | ||
| if ! ping -c 1 -W 2 1.1.1.1 >/dev/null 2>&1; then | ||
| if [[ $CURL_OK == false ]]; then | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P2: Captive portal intercepts (3xx/portal HTML) return curl exit 0, so Prompt for AI agents |
||
| # Restart WiFi to trigger macOS captive portal popup | ||
| networksetup -setairportpower en0 off | ||
| sleep 3 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,6 +32,7 @@ | |
| "cline": "^1.0.10", | ||
| "mcporter": "^0.7.3", | ||
| "open-composer": "^0.8.23", | ||
| "openclaw": "^2026.1.29", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # Check if openclaw exists on npm
curl -s https://registry.npmjs.org/openclaw | jq '.name, .description, ."dist-tags".latest' 2>/dev/null || echo "Package not found or error fetching"Repository: shunkakinoki/dotfiles Length of output: 142 🏁 Script executed: # Read package.json around line 35 to verify dependencies section and sorting
head -n 50 package.json | tail -n 20Repository: shunkakinoki/dotfiles Length of output: 537 🏁 Script executed: # Read package.json around line 64 to verify trustedDependencies section
sed -n '55,75p' package.jsonRepository: shunkakinoki/dotfiles Length of output: 361 🏁 Script executed: # Get full dependencies and trustedDependencies sections to verify alphabetical ordering
python3 << 'EOF'
import json
with open('package.json', 'r') as f:
data = json.load(f)
print("=== dependencies (keys only) ===")
if 'dependencies' in data:
for key in sorted(data['dependencies'].keys()):
print(f" {key}")
print("\n=== Actual order in file ===")
# Since we can't preserve exact order from json.load, let's check the raw file
print("\n=== trustedDependencies (if present) ===")
if 'trustedDependencies' in data:
print("Found trustedDependencies:")
for item in data['trustedDependencies']:
print(f" {item}")
EOFRepository: shunkakinoki/dotfiles Length of output: 1058 Fix alphabetical ordering in The Note: The 🤖 Prompt for AI Agents
|
||
| "oxfmt": "^0.27.0", | ||
| "oxlint": "^1.42.0", | ||
| "ralph-tui": "^0.6.0", | ||
|
|
@@ -60,6 +61,7 @@ | |
| "clawdhub", | ||
| "cline", | ||
| "mcporter", | ||
| "openclaw", | ||
| "open-composer", | ||
| "oxfmt", | ||
| "oxlint", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment still refers to "ping neverssl.com" but the code has been changed to use curl. The comment should be updated to accurately reflect the current implementation, such as "Check if neverssl.com is reachable via curl".