Skip to content

Commit 39a5c91

Browse files
committed
feat(cli): add oclite commands, agent switching, custom commands, and selection UI (#56, #59, #60)
1 parent 1fd1128 commit 39a5c91

6 files changed

Lines changed: 500 additions & 20 deletions

File tree

‎packages/opencode/src/cli/lite/bottombar.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ const safeNum = (n: number): number => (Number.isFinite(n) ? Math.max(0, n) : 0)
2121

2222
const formatCount = (n: number): string => (n > 9999 ? `${(n / 1000).toFixed(1)}k` : String(n))
2323

24-
export function renderPrompt(): string {
25-
return `${fg.cyan}❯${style.reset} `
24+
export function renderPrompt(agent?: string): string {
25+
const prefix = agent ? `${agent} ` : ""
26+
return `${prefix}${fg.cyan}❯${style.reset} `
2627
}
2728

2829
export function renderBottomBar(state: BottomBarState): string {

0 commit comments

Comments
 (0)