Skip to content

BUG: Plugin HTTP timeout inconsistent with main app timeout #989

@andrinoff

Description

@andrinoff

Describe the bug

Different HTTP timeouts across the codebase:

  • plugin/http.go:13: 10 seconds
  • plugins/embed.go:25,56: 10 seconds
  • view/html.go:300: 5 seconds (image fetch)
  • cli/install.go:25: 30 seconds
  • main.go:67: 30 seconds (update check)

No centralized HTTP client configuration. Each module creates its own client with different settings.

To reproduce

N/A — inconsistency issue.

Expected behavior

Create a shared HTTP client factory with configurable defaults:

func NewHTTPClient(opts ...Option) *http.Client

Or at minimum, extract timeout constants to a shared config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions