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

	}