(config *ResumeSessionConfig)
| 163 | } |
| 164 | |
| 165 | func (c *Client) applyResumeDefaultsForMode(config *ResumeSessionConfig) { |
| 166 | if c.options.Mode != ModeEmpty { |
| 167 | return |
| 168 | } |
| 169 | if config.EnableSessionTelemetry == nil { |
| 170 | f := false |
| 171 | config.EnableSessionTelemetry = &f |
| 172 | } |
| 173 | if config.SkipEmbeddingRetrieval == nil { |
| 174 | t := true |
| 175 | config.SkipEmbeddingRetrieval = &t |
| 176 | } |
| 177 | if config.EmbeddingCacheStorage == nil { |
| 178 | inMemory := "in-memory" |
| 179 | config.EmbeddingCacheStorage = &inMemory |
| 180 | } |
| 181 | if config.EnableOnDemandInstructionDiscovery == nil { |
| 182 | f := false |
| 183 | config.EnableOnDemandInstructionDiscovery = &f |
| 184 | } |
| 185 | if config.EnableFileHooks == nil { |
| 186 | f := false |
| 187 | config.EnableFileHooks = &f |
| 188 | } |
| 189 | if config.EnableHostGitOperations == nil { |
| 190 | f := false |
| 191 | config.EnableHostGitOperations = &f |
| 192 | } |
| 193 | if config.EnableSessionStore == nil { |
| 194 | f := false |
| 195 | config.EnableSessionStore = &f |
| 196 | } |
| 197 | if config.EnableSkills == nil { |
| 198 | f := false |
| 199 | config.EnableSkills = &f |
| 200 | } |
| 201 | if config.Memory == nil { |
| 202 | config.Memory = &MemoryConfiguration{Enabled: false} |
| 203 | } |
| 204 | if config.MCPOAuthTokenStorage == "" { |
| 205 | config.MCPOAuthTokenStorage = "in-memory" |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | // updateSessionOptionsForMode applies the per-mode safe-defaults patch via |
| 210 | // session.options.update after create/resume succeeds. In empty mode the |
no outgoing calls
no test coverage detected