TestSlashClearWipesTerminalScrollback: tea.ClearScreen (\x1b[2J) clears only the visible region; the saved-lines buffer needs the DECSED 3 sequence from eraseScrollback. /clear must emit both, or prior lines stay scrollable above the reset banner.
(t *testing.T)
| 855 | // bypassing cfg.Save(): what a user would do in an external editor. |
| 856 | yaml := []byte(`active: local |
| 857 | models: |
| 858 | local: |
| 859 | llm: local-model |
| 860 | url: ` + m.cfg.Models["local"].URL + ` |
| 861 | key: "" |
| 862 | context_size: 131072 |
| 863 | remote: |
| 864 | llm: cloud-model |
| 865 | url: http://remote:9000 |
| 866 | key: sk-r |
| 867 | context_size: 200000 |
| 868 | `) |
| 869 | if err := os.WriteFile(filepath.Join(m.cfg.Dir, "config.yaml"), yaml, 0o600); err != nil { |
nothing calls this directly
no test coverage detected