src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.ts/InteractiveHistoryService/addToHistory
class InteractiveHistoryService:	addToHistory(uri: URI, value: string): void {
		if (!this.#history.has(uri)) {
			this.#history.set(uri, new HistoryNavigator2<string>([value], 50));
			return;
		}

		const history = this.#history.get(uri)!;

		history.resetCursor();
		if (history?.current() !== value) {
			history?.add(value);
		}
	}