MCPcopy Create free account
hub / github.com/diillson/chatcli / webRenderTimeout

Function webRenderTimeout

cli/plugins/webfetch_render.go:102–110  ·  view source on GitHub ↗

webRenderTimeout resolves CHATCLI_WEBFETCH_RENDER_TIMEOUT (seconds).

()

Source from the content-addressed store, hash-verified

100
101// webRenderTimeout resolves CHATCLI_WEBFETCH_RENDER_TIMEOUT (seconds).
102func webRenderTimeout() time.Duration {
103 if v := os.Getenv("CHATCLI_WEBFETCH_RENDER_TIMEOUT"); v != "" {
104 var n int
105 if _, err := fmt.Sscanf(v, "%d", &n); err == nil && n > 0 {
106 return time.Duration(n) * time.Second
107 }
108 }
109 return defaultRenderTimeout
110}
111
112// effectiveRenderMode merges the per-call flag (highest precedence) with
113// the env-level mode.

Callers 2

TestWebRenderTimeoutFunction · 0.85
renderPageHTMLFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestWebRenderTimeoutFunction · 0.68