Squash Odysseus development history

This commit is contained in:
pewdiepie-archdaemon
2026-09-11 06:04:19 +00:00
parent e5c99a5eee
commit 6ee6502010
2050 changed files with 538359 additions and 57745 deletions
+6
View File
@@ -2,6 +2,7 @@
const state = {
API_BASE: '',
isActive: false,
_openingSelector: false, // prevents duplicate compare modals on rapid re-clicks
_streaming: false,
_blindMode: true,
_saveOnClose: false,
@@ -13,6 +14,7 @@ const state = {
// (sequential mode otherwise always picks pane 1)
_selectedModels: [], // [{model, endpoint, endpointId, name}, ...]
_paneSessionIds: [], // session IDs for each pane
_paneGenerationSettings: [], // per-pane thinking / temperature / token overrides
_paneMetrics: [], // metrics per pane from last round
_abortControllers: [], // per-pane abort controllers
_sidebarWasHidden: false,
@@ -32,20 +34,24 @@ const state = {
_fetchModelsCacheTime: 0,
_expectedAnswer: '', // when an eval prompt with `answer` is picked,
// stream.js reads this and stamps ✓/✗ per pane
_activeMobilePane: 0, // visible pane in the phone tab/card layout
};
/** Reset transient state to defaults — useful for clean restarts. */
export function reset() {
state._openingSelector = false;
state._streaming = false;
state._finishOrder = 0;
state._paneElapsed = [];
state._abortControllers.forEach(c => { if (c) c.abort(); });
state._abortControllers = [];
state._paneSessionIds = [];
state._paneGenerationSettings = [];
state._paneMetrics = [];
state._compareElements = [];
state._hasVisibleResults = false;
state._lastPrompt = '';
state._activeMobilePane = 0;
state._cachedModels = [];
state._probed = new Set();
state._cachedProviders = null;