Add --restricted mode to block dangerous commands for AI agents #4
Annotations
10 errors and 2 warnings
|
golangci-lint:
thop-go/internal/session/manager.go#L350
Error return value of `m.state.SetSessionCWD` is not checked (errcheck)
|
|
golangci-lint:
thop-go/internal/session/manager.go#L292
Error return value of `m.state.SetSessionConnected` is not checked (errcheck)
|
|
golangci-lint:
thop-go/internal/session/manager.go#L260
Error return value of `m.state.SetSessionConnected` is not checked (errcheck)
|
|
golangci-lint:
thop-go/internal/session/manager.go#L230
Error return value of `m.state.SetActiveSession` is not checked (errcheck)
|
|
golangci-lint:
thop-go/internal/session/local.go#L341
Error return value of `interruptW.Write` is not checked (errcheck)
|
|
golangci-lint:
thop-go/internal/session/local.go#L338
Error return value of `io.Copy` is not checked (errcheck)
|
|
golangci-lint:
thop-go/internal/session/local.go#L277
Error return value of `term.Restore` is not checked (errcheck)
|
|
golangci-lint:
thop-go/internal/state/state.go#L146
Error return value of `syscall.Flock` is not checked (errcheck)
|
|
golangci-lint:
thop-go/internal/state/state.go#L123
Error return value of `syscall.Flock` is not checked (errcheck)
|
|
golangci-lint:
thop-go/internal/logger/logger.go#L151
Error return value of `l.output.Write` is not checked (errcheck)
|
|
Post golangci-lint
Failed to save: <h2>Our services aren't available right now</h2><p>We're working to restore all services as soon as possible. Please check back soon.</p>0thlvaQAAAACXh9f+sub8RJiox+cPhdYCUEhMMzBFREdFMDIwOABFZGdl
|
|
golangci-lint
Failed to restore: Cache service responded with 400
|
Loading