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

Function remoteSessionCtx

cli/cli_session.go:76–78  ·  view source on GitHub ↗

remoteSessionCtx derives a 10-second-timeout context from the caller's context for remote session operations.

(ctx context.Context)

Source from the content-addressed store, hash-verified

74// remoteSessionCtx derives a 10-second-timeout context from the caller's
75// context for remote session operations.
76func remoteSessionCtx(ctx context.Context) (context.Context, context.CancelFunc) {
77 return context.WithTimeout(ctx, 10*time.Second)
78}
79
80func (cli *ChatCLI) handleSaveSession(ctx context.Context, name string) {
81 if cli.isRemote {

Callers 3

handleLoadSessionMethod · 0.85
handleListSessionsMethod · 0.85
handleDeleteSessionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected