MCPcopy
hub / github.com/docker/docker-agent / handleToggleSplitDiff

Method handleToggleSplitDiff

pkg/tui/handlers.go:410–421  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

408}
409
410func (m *appModel) handleToggleSplitDiff() (tea.Model, tea.Cmd) {
411 m.sessionState.ToggleSplitDiffView()
412 enabled := m.sessionState.SplitDiffView()
413
414 // Persist to global userconfig
415 go persistSplitDiffView(enabled)
416
417 return m, tea.Batch(
418 m.updateChatCmd(editfile.ToggleDiffViewMsg{}),
419 m.updateChatCmd(messages.SessionToggleChangedMsg{}),
420 )
421}
422
423// persistSplitDiffView writes the current split-diff toggle to the user
424// config without blocking the UI. Errors are logged but otherwise ignored

Callers 1

updateMethod · 0.95

Calls 5

updateChatCmdMethod · 0.95
persistSplitDiffViewFunction · 0.85
ToggleSplitDiffViewMethod · 0.80
BatchMethod · 0.80
SplitDiffViewMethod · 0.65

Tested by

no test coverage detected