From 8eb39750d6ef3b2a84c2d5e0af5f7e60022caf0e Mon Sep 17 00:00:00 2001 From: colangelo Date: Thu, 21 May 2026 12:08:14 +0200 Subject: [PATCH 1/6] feat: render braille failures as full purple cell MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Failures in braille mode rendered as a literal '!' for paired timeouts and as a half-cell for mixed pairs, both visually weak. Now any pair containing a failure renders as ⣿ (full 8-dot cell) in purple — distinct from green/yellow/red latency cells and unmistakable as an outage marker. Co-Authored-By: Claude Opus 4.7 (1M context) --- main.go | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/main.go b/main.go index 5db4b50..e37c0ff 100644 --- a/main.go +++ b/main.go @@ -29,6 +29,7 @@ const ( green = "\033[32m" yellow = "\033[33m" red = "\033[31m" + purple = "\033[35m" gray = "\033[90m" bold = "\033[1m" reset = "\033[0m" @@ -290,8 +291,8 @@ func main() { } if *showLegend && !*quiet && !*silent { if *useBraille { - fmt.Printf("%sLegend: %s⡀⡄%s<%dms %s⡆%s<%dms %s⡇%s>=%dms %s%s!%sfail %s(2x density)%s\n", - gray, green, reset, greenThreshold, yellow, reset, yellowThreshold, red, reset, yellowThreshold, red, bold, reset, gray, reset) + fmt.Printf("%sLegend: %s⡀⡄%s<%dms %s⡆%s<%dms %s⡇%s>=%dms %s%s⣿%sfail %s(2x density)%s\n", + gray, green, reset, greenThreshold, yellow, reset, yellowThreshold, red, reset, yellowThreshold, purple, bold, reset, gray, reset) } else { fmt.Printf("%sLegend: %s▁▂▃%s<%dms %s▄▅%s<%dms %s▆▇█%s>=%dms %s%s!%sfail%s\n", gray, green, reset, greenThreshold, yellow, reset, yellowThreshold, red, reset, yellowThreshold, red, bold, reset, reset) @@ -528,15 +529,10 @@ func getBrailleChar(leftRTT, rightRTT time.Duration) string { leftHeight := getBrailleHeight(leftRTT) rightHeight := getBrailleHeight(rightRTT) - // Handle failures - if leftHeight < 0 && rightHeight < 0 { - return red + bold + "!" + reset - } - if leftHeight < 0 { - leftHeight = 0 - } - if rightHeight < 0 { - rightHeight = 0 + // Any failure in the pair renders as a full purple cell (⣿). + // A failure dominates the slot — the paired success is dropped visually. + if leftHeight < 0 || rightHeight < 0 { + return purple + bold + "⣿" + reset } // Build braille character From c71f9d2cbf93d823e8a62015ec23b5fe36d80c9f Mon Sep 17 00:00:00 2001 From: colangelo Date: Thu, 21 May 2026 12:14:53 +0200 Subject: [PATCH 2/6] chore: bump version to 0.8.7 for upcoming release Includes the braille failure rendering change and the Dockerfile base image bump. Marked under [Unreleased] in CHANGELOG. Co-Authored-By: Claude Opus 4.7 (1M context) --- CHANGELOG.md | 7 +++++++ main.go | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 161caf5..209151b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to hp (hittyping) will be documented in this file. +## [Unreleased] + +### Changed + +- Braille mode: failures now render as a full purple cell (`⣿`) instead of a literal `!`, making outages visually distinct from latency bars +- Bump Dockerfile base image to `golang:1.26-alpine` + ## [0.8.6] - 2026-05-17 ### Changed diff --git a/main.go b/main.go index e37c0ff..ca51355 100644 --- a/main.go +++ b/main.go @@ -22,7 +22,7 @@ import ( // cleanly pause rendering before the process is actually stopped. var displayMu sync.Mutex -const version = "0.8.6" +const version = "0.8.7" const ( // ANSI colors From 3abe46106b256f18869f9fff82bae3079a5312e8 Mon Sep 17 00:00:00 2001 From: colangelo Date: Sun, 8 Nov 2026 22:57:45 +0100 Subject: [PATCH 3/6] chore: prepare v0.8.7 release Co-Authored-By: Claude Sonnet 5.5 --- CHANGELOG.md | 2 +- ROADMAP.md | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 209151b..444fb8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ All notable changes to hp (hittyping) will be documented in this file. -## [Unreleased] +## [0.8.7] - 2026-11-08 ### Changed diff --git a/ROADMAP.md b/ROADMAP.md index 25ecc45..59d68ff 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -74,6 +74,11 @@ If hp evolves toward interactive features, consider migrating to [Bubble Tea](ht ## Completed +### v0.8.7 - Braille Failure Cells + +- [x] Braille mode: failures render as a full purple cell instead of `!` +- [x] Bump Dockerfile base image to `golang:1.26-alpine` + ### v0.8.6 - Toolchain & Dependency Refresh - [x] Bump Go toolchain to 1.26.2 From 80ef266bf901f10f8999da14cef724d45ef1c809 Mon Sep 17 00:00:00 2001 From: colangelo Date: Sun, 8 Nov 2026 23:01:11 +0100 Subject: [PATCH 4/6] fix(deps): bump x/text, x/net, quic-go to clear GO-2026-5970, -5026, -5676 Co-Authored-By: Claude Sonnet 5.5 --- go.mod | 10 +++++----- go.sum | 34 ++++++++++++++++------------------ 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/go.mod b/go.mod index f570ca0..182a72b 100644 --- a/go.mod +++ b/go.mod @@ -3,14 +3,14 @@ module github.com/ac/hp go 1.26.2 require ( - github.com/quic-go/quic-go v0.59.0 + github.com/quic-go/quic-go v0.65.0 github.com/spf13/pflag v1.0.10 - golang.org/x/sys v0.43.0 + golang.org/x/sys v0.49.0 ) require ( github.com/quic-go/qpack v0.6.0 // indirect - golang.org/x/crypto v0.50.0 // indirect - golang.org/x/net v0.53.0 // indirect - golang.org/x/text v0.36.0 // indirect + golang.org/x/crypto v0.58.0 // indirect + golang.org/x/net v0.62.0 // indirect + golang.org/x/text v0.43.0 // indirect ) diff --git a/go.sum b/go.sum index 73eee19..652cc99 100644 --- a/go.sum +++ b/go.sum @@ -1,24 +1,22 @@ -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/quic-go/go-ossfuzz-seeds v0.1.0 h1:APacT+iIaNF6fd8AGEiN3bT/Jtkd2jz4v4TzM7MFjy0= +github.com/quic-go/go-ossfuzz-seeds v0.1.0/go.mod h1:3IOHRbJIc+L6YKMwfDtJAM9Vj9k0YY4muhuyUYk5tbk= github.com/quic-go/qpack v0.6.0 h1:g7W+BMYynC1LbYLSqRt8PBg5Tgwxn214ZZR34VIOjz8= github.com/quic-go/qpack v0.6.0/go.mod h1:lUpLKChi8njB4ty2bFLX2x4gzDqXwUpaO1DP9qMDZII= -github.com/quic-go/quic-go v0.59.0 h1:OLJkp1Mlm/aS7dpKgTc6cnpynnD2Xg7C1pwL6vy/SAw= -github.com/quic-go/quic-go v0.59.0/go.mod h1:upnsH4Ju1YkqpLXC305eW3yDZ4NfnNbmQRCMWS58IKU= +github.com/quic-go/quic-go v0.65.0 h1:BJQSjdTvLPLmWtaCupUphRbgxgpZhdO/GMpr9Eoe3B4= +github.com/quic-go/quic-go v0.65.0/go.mod h1:RAro2j2yN9a9EiPACLHT9IB2NXCvGQmmo/alT0yYI0w= github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk= github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= -github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= +github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE= +github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg= go.uber.org/mock v0.5.2 h1:LbtPTcP8A5k9WPXj54PPPbjcI4Y6lhyOZXn+VS7wNko= go.uber.org/mock v0.5.2/go.mod h1:wLlUxC2vVTPTaE3UD51E0BGOAElKrILxhVSDYQLld5o= -golang.org/x/crypto v0.50.0 h1:zO47/JPrL6vsNkINmLoo/PH1gcxpls50DNogFvB5ZGI= -golang.org/x/crypto v0.50.0/go.mod h1:3muZ7vA7PBCE6xgPX7nkzzjiUq87kRItoJQM1Yo8S+Q= -golang.org/x/net v0.53.0 h1:d+qAbo5L0orcWAr0a9JweQpjXF19LMXJE8Ey7hwOdUA= -golang.org/x/net v0.53.0/go.mod h1:JvMuJH7rrdiCfbeHoo3fCQU24Lf5JJwT9W3sJFulfgs= -golang.org/x/sys v0.43.0 h1:Rlag2XtaFTxp19wS8MXlJwTvoh8ArU6ezoyFsMyCTNI= -golang.org/x/sys v0.43.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= -golang.org/x/text v0.36.0 h1:JfKh3XmcRPqZPKevfXVpI1wXPTqbkE5f7JA92a55Yxg= -golang.org/x/text v0.36.0/go.mod h1:NIdBknypM8iqVmPiuco0Dh6P5Jcdk8lJL0CUebqK164= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +go.yaml.in/yaml/v3 v3.0.5 h1:N6y/pJk8buWs9NY5ERU2HSMfm+IuD/OtfdAnq6kESPw= +go.yaml.in/yaml/v3 v3.0.5/go.mod h1:HVTZu1O7/Vkt2N+BFy8Zza+lnLsABggaTM2ZpNIGuKg= +golang.org/x/crypto v0.58.0 h1:COkYLr4k7nDI4r6QtMML2AfzeIswWHAJthLS6K/M/54= +golang.org/x/crypto v0.58.0/go.mod h1:Xh+kl5A+M0gMiWDytH2Hhr5Z7WbNCpv/eB/EFgfSk+w= +golang.org/x/net v0.62.0 h1:18ELalfM5+XNRwzM2nYqXsZQ9ByS1uhj2O/U7+5jqRY= +golang.org/x/net v0.62.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= +golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= +golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/text v0.43.0 h1:1QivrlhwAsnMOcqgOdl9my7s9OyZl8O5/UGUTJVXoWc= +golang.org/x/text v0.43.0/go.mod h1:hbSIYA/amXcRXTFSZqh8tWHEoqRvvbKPJ2uz/KU+a+s= From 4e6c137960c694abf67309ab858d8ba2fd7d1aa6 Mon Sep 17 00:00:00 2001 From: colangelo Date: Sun, 8 Nov 2026 23:01:55 +0100 Subject: [PATCH 5/6] ci: pin golangci-lint v2.15.0 to fix lint panic on Go 1.27 Root cause: setup-go 'stable' now resolves to go1.27.3, but the pinned golangci-lint v2.9.0 binary was built with go1.26. Type-checking the go1.27 stdlib panics in go/types handleError -> convertError with 'file requires newer Go version go1.27 (application built with go1.26)'. Pin a newer release instead of skipping lint; v2.15.0 reports 0 issues locally on go1.27.3. Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea3c4a6..534a341 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: go-version: 'stable' - uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8 with: - version: v2.9.0 + version: v2.15.0 test: runs-on: ubuntu-latest From 07d6e84f40c2652e907f37ce7b9de2fcc4e213cf Mon Sep 17 00:00:00 2001 From: colangelo Date: Sun, 8 Nov 2026 23:01:55 +0100 Subject: [PATCH 6/6] docs: changelog security section for v0.8.7 Co-Authored-By: Claude Sonnet 5.5 --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 444fb8f..e35950c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to hp (hittyping) will be documented in this file. ## [0.8.7] - 2026-11-08 +### Security + +- Bump `golang.org/x/text` 0.36.0 → 0.43.0 (GO-2026-5970, fixed in 0.39.0), `golang.org/x/net` 0.53.0 → 0.62.0 (GO-2026-5026, fixed in 0.55.0) and `github.com/quic-go/quic-go` 0.59.0 → 0.65.0 (GO-2026-5676, fixed in 0.59.1); also `x/crypto` 0.58.0 and `x/sys` 0.49.0 +- CI: pin golangci-lint v2.15.0 (v2.9.0 panicked on Go 1.27 stdlib) + ### Changed - Braille mode: failures now render as a full purple cell (`⣿`) instead of a literal `!`, making outages visually distinct from latency bars