]> git.giacomolli.uk - onechat/commit
Check operation context on returned errors
authorAnderson A. Giacomolli <redacted>
Mon, 9 Nov 2026 21:00:39 +0000 (18:00 -0300)
committerAnderson A. Giacomolli <redacted>
Mon, 9 Nov 2026 21:28:42 +0000 (18:28 -0300)
commitd9fddc0f506eb4ead7049f5638674b2b8773fcaa
treef517925d988767ba300fa0ca199c29199912ef7f
parent087d725b5ab41ad34ffd24938482d45a8b99a080
Check operation context on returned errors

Wrapcheck requires operation context on errors from package and
interface calls. Returned errors keep their causes for errors.Is and
errors.As. Context cancellation and the listed functions with one error
path keep their direct returns, as the Go rules allow.
12 files changed:
.golangci.yml
chain.go
chatgpt.go
log.go
main.go
subagent_run_test.go
terminal.go
terminal_client_helper_test.go
tools.go
tools_test.go
tree.go
view.go