detached e54d007

Format interactive OpenRouter configuration

commit
e54d00733f36bae951cf294bc3df1ad574951ec4
author
patriceckhart · · 2026-09-04 05:47 UTC
parent
8bb11d5
signature
unsigned
refs
tag: v0.3.59
1 file · +44 -44
M packages/agent/cli.go +44 -44
@@ -1264,51 +1264,51 @@ func runInteractive(ctx context.Context, args Args, version string) error {
12641264 }
12651265
12661266 iv = modes.NewInteractive(modes.InteractiveConfig{
1267- Terminal: term,
1268- Theme: theme,
1269- InlineImagesEnabled: initialCfg.InlineImagesEnabled,
1270- AutoSwarmEnabled: initialCfg.AutoSwarmEnabled,
1271- AutoCompactThreshold: initialCfg.AutoCompactThreshold,
1272- JailByDefault: initialCfg.JailByDefault,
1273- OpenRouterServerToolsEnabled: initialCfg.OpenRouterServerToolsEnabled,
1267+ Terminal: term,
1268+ Theme: theme,
1269+ InlineImagesEnabled: initialCfg.InlineImagesEnabled,
1270+ AutoSwarmEnabled: initialCfg.AutoSwarmEnabled,
1271+ AutoCompactThreshold: initialCfg.AutoCompactThreshold,
1272+ JailByDefault: initialCfg.JailByDefault,
1273+ OpenRouterServerToolsEnabled: initialCfg.OpenRouterServerToolsEnabled,
12741274 OpenRouterServerToolCallLimit: initialCfg.OpenRouterServerToolCallLimit,
1275- NoTools: args.NoTools,
1276- QuickModelShortcuts: quickModelShortcuts,
1277- RecursiveFileSuggest: initialCfg.RecursiveFileSuggest,
1278- RespectGitignore: initialCfg.RespectGitignore,
1279- CompactMode: initialCfg.CompactMode,
1280- TUIInputStyle: initialCfg.TUIInputStyle,
1281- TUIStatusPosition: initialCfg.TUIStatusPosition,
1282- TUIWorkingPosition: initialCfg.TUIWorkingPosition,
1283- ThemeName: initialCfg.Theme,
1284- FlatTools: initialCfg.FlatToolRender(),
1285- CompactUser: initialCfg.CompactUserInput(),
1286- ExtensionThemes: extMgr.ThemeOptions,
1287- AutoSwarmSystemAddendum: AutoSwarmSystemAddendum,
1288- SettingsStore: configSettingsStore{},
1289- Model: r.Model,
1290- Provider: r.Provider,
1291- AuthMethod: r.AuthMethod,
1292- BaseURL: r.BaseURL,
1293- Reasoning: r.Reasoning,
1294- SystemPrompt: r.SystemPrompt,
1295- Tools: r.ToolRegistry,
1296- MaxSteps: r.MaxSteps,
1297- CWD: r.CWD,
1298- StartupAgentName: args.AgentName,
1299- StartupContextPaths: instructionContextPaths(r.ContextFiles),
1300- StartupExtensionNames: startupExtensionNames(extMgr.All()),
1301- StartupExtensionErrors: startupExtensionErrors,
1302- StartupSkillNames: startupSkillNames(startupSkills),
1303- ShowInstructionsAtStartup: initialCfg.ShowInstructionsAtStartup,
1304- ZotHome: ZotHome(),
1305- SessionsRoot: agentSessionsRoot(ZotHome(), args),
1306- Version: version,
1307- UpdateInfoChan: updateCh,
1308- Sandbox: sharedSandbox,
1309- Agent: ag,
1310- InitialInput: args.Prompt,
1311- StartupPre: args.StartupPre,
1275+ NoTools: args.NoTools,
1276+ QuickModelShortcuts: quickModelShortcuts,
1277+ RecursiveFileSuggest: initialCfg.RecursiveFileSuggest,
1278+ RespectGitignore: initialCfg.RespectGitignore,
1279+ CompactMode: initialCfg.CompactMode,
1280+ TUIInputStyle: initialCfg.TUIInputStyle,
1281+ TUIStatusPosition: initialCfg.TUIStatusPosition,
1282+ TUIWorkingPosition: initialCfg.TUIWorkingPosition,
1283+ ThemeName: initialCfg.Theme,
1284+ FlatTools: initialCfg.FlatToolRender(),
1285+ CompactUser: initialCfg.CompactUserInput(),
1286+ ExtensionThemes: extMgr.ThemeOptions,
1287+ AutoSwarmSystemAddendum: AutoSwarmSystemAddendum,
1288+ SettingsStore: configSettingsStore{},
1289+ Model: r.Model,
1290+ Provider: r.Provider,
1291+ AuthMethod: r.AuthMethod,
1292+ BaseURL: r.BaseURL,
1293+ Reasoning: r.Reasoning,
1294+ SystemPrompt: r.SystemPrompt,
1295+ Tools: r.ToolRegistry,
1296+ MaxSteps: r.MaxSteps,
1297+ CWD: r.CWD,
1298+ StartupAgentName: args.AgentName,
1299+ StartupContextPaths: instructionContextPaths(r.ContextFiles),
1300+ StartupExtensionNames: startupExtensionNames(extMgr.All()),
1301+ StartupExtensionErrors: startupExtensionErrors,
1302+ StartupSkillNames: startupSkillNames(startupSkills),
1303+ ShowInstructionsAtStartup: initialCfg.ShowInstructionsAtStartup,
1304+ ZotHome: ZotHome(),
1305+ SessionsRoot: agentSessionsRoot(ZotHome(), args),
1306+ Version: version,
1307+ UpdateInfoChan: updateCh,
1308+ Sandbox: sharedSandbox,
1309+ Agent: ag,
1310+ InitialInput: args.Prompt,
1311+ StartupPre: args.StartupPre,
13121312 OnStartupPreDone: func() {
13131313 // entry.pre often installs skills/extensions; rediscover them
13141314 // before the user starts a model turn.
@@ -1264,51 +1264,51 @@ func runInteractive(ctx context.Context, args Args, version string) error {
1264 }1264 }
1265 1265
1266 iv = modes.NewInteractive(modes.InteractiveConfig{1266 iv = modes.NewInteractive(modes.InteractiveConfig{
1267- Terminal: term,1267+ Terminal: term,
1268- Theme: theme,1268+ Theme: theme,
1269- InlineImagesEnabled: initialCfg.InlineImagesEnabled,1269+ InlineImagesEnabled: initialCfg.InlineImagesEnabled,
1270- AutoSwarmEnabled: initialCfg.AutoSwarmEnabled,1270+ AutoSwarmEnabled: initialCfg.AutoSwarmEnabled,
1271- AutoCompactThreshold: initialCfg.AutoCompactThreshold,1271+ AutoCompactThreshold: initialCfg.AutoCompactThreshold,
1272- JailByDefault: initialCfg.JailByDefault,1272+ JailByDefault: initialCfg.JailByDefault,
1273- OpenRouterServerToolsEnabled: initialCfg.OpenRouterServerToolsEnabled,1273+ OpenRouterServerToolsEnabled: initialCfg.OpenRouterServerToolsEnabled,
1274 OpenRouterServerToolCallLimit: initialCfg.OpenRouterServerToolCallLimit,1274 OpenRouterServerToolCallLimit: initialCfg.OpenRouterServerToolCallLimit,
1275- NoTools: args.NoTools,1275+ NoTools: args.NoTools,
1276- QuickModelShortcuts: quickModelShortcuts,1276+ QuickModelShortcuts: quickModelShortcuts,
1277- RecursiveFileSuggest: initialCfg.RecursiveFileSuggest,1277+ RecursiveFileSuggest: initialCfg.RecursiveFileSuggest,
1278- RespectGitignore: initialCfg.RespectGitignore,1278+ RespectGitignore: initialCfg.RespectGitignore,
1279- CompactMode: initialCfg.CompactMode,1279+ CompactMode: initialCfg.CompactMode,
1280- TUIInputStyle: initialCfg.TUIInputStyle,1280+ TUIInputStyle: initialCfg.TUIInputStyle,
1281- TUIStatusPosition: initialCfg.TUIStatusPosition,1281+ TUIStatusPosition: initialCfg.TUIStatusPosition,
1282- TUIWorkingPosition: initialCfg.TUIWorkingPosition,1282+ TUIWorkingPosition: initialCfg.TUIWorkingPosition,
1283- ThemeName: initialCfg.Theme,1283+ ThemeName: initialCfg.Theme,
1284- FlatTools: initialCfg.FlatToolRender(),1284+ FlatTools: initialCfg.FlatToolRender(),
1285- CompactUser: initialCfg.CompactUserInput(),1285+ CompactUser: initialCfg.CompactUserInput(),
1286- ExtensionThemes: extMgr.ThemeOptions,1286+ ExtensionThemes: extMgr.ThemeOptions,
1287- AutoSwarmSystemAddendum: AutoSwarmSystemAddendum,1287+ AutoSwarmSystemAddendum: AutoSwarmSystemAddendum,
1288- SettingsStore: configSettingsStore{},1288+ SettingsStore: configSettingsStore{},
1289- Model: r.Model,1289+ Model: r.Model,
1290- Provider: r.Provider,1290+ Provider: r.Provider,
1291- AuthMethod: r.AuthMethod,1291+ AuthMethod: r.AuthMethod,
1292- BaseURL: r.BaseURL,1292+ BaseURL: r.BaseURL,
1293- Reasoning: r.Reasoning,1293+ Reasoning: r.Reasoning,
1294- SystemPrompt: r.SystemPrompt,1294+ SystemPrompt: r.SystemPrompt,
1295- Tools: r.ToolRegistry,1295+ Tools: r.ToolRegistry,
1296- MaxSteps: r.MaxSteps,1296+ MaxSteps: r.MaxSteps,
1297- CWD: r.CWD,1297+ CWD: r.CWD,
1298- StartupAgentName: args.AgentName,1298+ StartupAgentName: args.AgentName,
1299- StartupContextPaths: instructionContextPaths(r.ContextFiles),1299+ StartupContextPaths: instructionContextPaths(r.ContextFiles),
1300- StartupExtensionNames: startupExtensionNames(extMgr.All()),1300+ StartupExtensionNames: startupExtensionNames(extMgr.All()),
1301- StartupExtensionErrors: startupExtensionErrors,1301+ StartupExtensionErrors: startupExtensionErrors,
1302- StartupSkillNames: startupSkillNames(startupSkills),1302+ StartupSkillNames: startupSkillNames(startupSkills),
1303- ShowInstructionsAtStartup: initialCfg.ShowInstructionsAtStartup,1303+ ShowInstructionsAtStartup: initialCfg.ShowInstructionsAtStartup,
1304- ZotHome: ZotHome(),1304+ ZotHome: ZotHome(),
1305- SessionsRoot: agentSessionsRoot(ZotHome(), args),1305+ SessionsRoot: agentSessionsRoot(ZotHome(), args),
1306- Version: version,1306+ Version: version,
1307- UpdateInfoChan: updateCh,1307+ UpdateInfoChan: updateCh,
1308- Sandbox: sharedSandbox,1308+ Sandbox: sharedSandbox,
1309- Agent: ag,1309+ Agent: ag,
1310- InitialInput: args.Prompt,1310+ InitialInput: args.Prompt,
1311- StartupPre: args.StartupPre,1311+ StartupPre: args.StartupPre,
1312 OnStartupPreDone: func() {1312 OnStartupPreDone: func() {
1313 // entry.pre often installs skills/extensions; rediscover them1313 // entry.pre often installs skills/extensions; rediscover them
1314 // before the user starts a model turn.1314 // before the user starts a model turn.

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 476

↑↓ moveenter openesc close