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