()
| 1121 | } |
| 1122 | |
| 1123 | private async loadPersistedInputHistory(): Promise<void> { |
| 1124 | try { |
| 1125 | const file = getInputHistoryFile(this.state.appState.workDir); |
| 1126 | const entries = await loadInputHistory(file); |
| 1127 | for (const entry of entries) { |
| 1128 | this.state.editor.addToHistory(entry.content); |
| 1129 | } |
| 1130 | this.lastHistoryContent = entries.at(-1)?.content; |
| 1131 | } catch { |
| 1132 | // best-effort |
| 1133 | } |
| 1134 | } |
| 1135 | |
| 1136 | private async persistInputHistory(text: string): Promise<void> { |
| 1137 | const trimmed = text.trim(); |
no test coverage detected