Skip to content

Commit 34208f6

Browse files
committed
Route Force Reload through focused-resource boundary; regen docs manifest
1 parent 3e0db8d commit 34208f6

5 files changed

Lines changed: 35 additions & 6 deletions

File tree

apps/desktop/src/main/browser-agent/session.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,6 +1964,9 @@ export function handleFocusedShortcut(
19641964
case 'reload-or-clear':
19651965
shortcutTab.view.webContents.reload()
19661966
return true
1967+
case 'hard-reload':
1968+
shortcutTab.view.webContents.reloadIgnoringCache()
1969+
return true
19671970
}
19681971

19691972
const zoomAction = zoomActionForShortcut(shortcut)

apps/desktop/src/main/menu.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,18 @@ export function buildMenuTemplate(deps: MenuDeps): MenuItemConstructorOptions[]
126126
},
127127
},
128128
/**
129-
* Hard refresh of the Sim shell itself, cache ignored — the recovery
130-
* lever for picking up freshly deployed client code. Unlike plain
131-
* Reload it never routes to a focused Browser/Terminal panel: the point
132-
* is always the shell.
129+
* Hard refresh, cache ignored. A focused Browser tab claims it first
130+
* (same boundary as Reload/Close Tab); otherwise it reloads the Sim
131+
* shell — the recovery lever for picking up freshly deployed client
132+
* code.
133133
*/
134134
{
135135
label: 'Force Reload',
136136
accelerator: 'CmdOrCtrl+Shift+R',
137137
click: (_item, focusedWindow) => {
138138
const win = focusedOrMain(focusedWindow)
139139
if (!win || win.isDestroyed()) return
140+
if (deps.handleFocusedResourceShortcut(win, 'hard-reload')) return
140141
win.webContents.reloadIgnoringCache()
141142
},
142143
},

apps/desktop/src/main/resource-shortcuts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export type FocusedResourceShortcut =
1212
| 'focus-omnibox'
1313
| ResourceTabSelectionShortcut
1414
| 'reload-or-clear'
15+
| 'hard-reload'
1516
| `zoom-${DesktopZoomAction}`
1617

1718
export type ResourceTabSelectionShortcut =

apps/desktop/src/main/terminal/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,8 @@ export class TerminalService {
498498
emitRendererCommand: (command: TerminalShortcutCommand, terminalId: string) => void,
499499
confirmCloseRunning?: (running: string) => boolean
500500
): boolean {
501-
if (shortcut === 'focus-omnibox') return false
501+
// Hard reload has no terminal meaning — leave it to the Browser or shell.
502+
if (shortcut === 'focus-omnibox' || shortcut === 'hard-reload') return false
502503
const visibleTabShortcut =
503504
shortcut === 'new-tab' || shortcut === 'reopen-closed-tab' || shortcut === 'close-tab'
504505
const ownsVisibleTabs =

apps/sim/lib/copilot/generated/docs-manifest.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,27 @@ export const DOCS_MANIFEST: readonly string[] = [
2222
'chat/tables.mdx',
2323
'chat/tasks.mdx',
2424
'chat/workflows.mdx',
25+
'cli.mdx',
26+
'cli/audit-logs.mdx',
27+
'cli/authentication.mdx',
28+
'cli/billing.mdx',
29+
'cli/commands.mdx',
30+
'cli/configuration.mdx',
31+
'cli/credentials.mdx',
32+
'cli/custom-tools.mdx',
33+
'cli/files.mdx',
34+
'cli/knowledge.mdx',
35+
'cli/logs.mdx',
36+
'cli/mcp-servers.mdx',
37+
'cli/output.mdx',
38+
'cli/reference.mdx',
39+
'cli/scripting.mdx',
40+
'cli/secrets.mdx',
41+
'cli/skills.mdx',
42+
'cli/tables.mdx',
43+
'cli/troubleshooting.mdx',
44+
'cli/workflows.mdx',
45+
'cli/workspaces.mdx',
2546
'files.mdx',
2647
'files/editor.mdx',
2748
'files/generating.mdx',
@@ -101,7 +122,6 @@ export const DOCS_MANIFEST: readonly string[] = [
101122
'integrations/enrich.mdx',
102123
'integrations/enrichment.mdx',
103124
'integrations/enrow.mdx',
104-
'integrations/evernote.mdx',
105125
'integrations/exa.mdx',
106126
'integrations/extend.mdx',
107127
'integrations/fathom.mdx',
@@ -157,6 +177,7 @@ export const DOCS_MANIFEST: readonly string[] = [
157177
'integrations/jina.mdx',
158178
'integrations/jira.mdx',
159179
'integrations/jira_service_management.mdx',
180+
'integrations/jotform.mdx',
160181
'integrations/jupyter.mdx',
161182
'integrations/kalshi.mdx',
162183
'integrations/ketch.mdx',
@@ -192,6 +213,7 @@ export const DOCS_MANIFEST: readonly string[] = [
192213
'integrations/monday-service-account.mdx',
193214
'integrations/monday.mdx',
194215
'integrations/mongodb.mdx',
216+
'integrations/mssql.mdx',
195217
'integrations/mysql.mdx',
196218
'integrations/neo4j.mdx',
197219
'integrations/netsuite-service-account.mdx',
@@ -258,6 +280,7 @@ export const DOCS_MANIFEST: readonly string[] = [
258280
'integrations/smtp.mdx',
259281
'integrations/snowflake-service-account.mdx',
260282
'integrations/snowflake.mdx',
283+
'integrations/splunk.mdx',
261284
'integrations/sportmonks.mdx',
262285
'integrations/sqs.mdx',
263286
'integrations/square.mdx',

0 commit comments

Comments
 (0)