MCPcopy Index your code
hub / github.com/anomalyco/opencode / footerWidthPolicy

Function footerWidthPolicy

packages/opencode/src/cli/cmd/run/footer.width.ts:10–27  ·  view source on GitHub ↗
(width: number)

Source from the content-addressed store, hash-verified

8} as const
9
10export function footerWidthPolicy(width: number) {
11 const compact = width >= FOOTER_WIDTH_BREAKPOINTS.compact
12 const model = width >= FOOTER_WIDTH_BREAKPOINTS.model
13 const spacious = width >= FOOTER_WIDTH_BREAKPOINTS.spacious
14
15 return {
16 dialog: {
17 narrow: !compact,
18 },
19 statusline: {
20 showActivityMeta: compact,
21 showCommandHint: width >= FOOTER_WIDTH_BREAKPOINTS.commandHint,
22 showContextHints: compact,
23 contextHintLimit: !compact ? 0 : spacious ? undefined : model ? 2 : 1,
24 showModel: model,
25 },
26 }
27}

Callers 4

RunFooterViewFunction · 0.90
RunQuestionBodyFunction · 0.90
RunPermissionBodyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected