-
Notifications
You must be signed in to change notification settings - Fork 2k
feat(ui): add customizable status line with /statusline command #2923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
wenshao
wants to merge
36
commits into
main
Choose a base branch
from
feature/status-line-customization
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
6784f0c
feat(ui): add customizable status line
wenshao 8d85492
feat(ui): rewrite customizable status line
wenshao 959690b
fix: regenerate settings.schema.json via generate:settings-schema
wenshao be13adb
fix: add SettingsContext to Footer tests
wenshao c219f7c
fix: address review feedback from Copilot
wenshao 24251db
fix: track vimEnabled changes in status line triggers
wenshao 1a985bb
fix: exec cwd, output trimming, and status line alignment
wenshao 4c4e638
fix: kill child process when statusLine config is removed
wenshao 9bba05b
fix: add ASK_USER_QUESTION to statusline-setup agent, clear debounce …
wenshao b1af941
docs: add status line user documentation
wenshao 12e1ef4
docs: add prerequisites, hot-reload note, fix troubleshooting test JSON
wenshao 813d863
docs: guard division by zero in script example
wenshao 5b9c94b
docs: fix jsonc trailing commas that break settings parser
wenshao 3aa246a
docs: quote $input in inline command examples
wenshao e4e3c21
fix: handle PS1 newlines in statusline-setup agent prompt
wenshao f67c9c5
fix: clarify footer comment and add Windows shell note to docs
wenshao f807118
docs: use sh -c in troubleshooting test command
wenshao 0e9c361
fix: use explicit Agent tool wording in /statusline prompt
wenshao 51964fa
Merge remote-tracking branch 'origin/main' into feature/status-line-c…
wenshao 7902806
docs: add ui.statusLine entry to settings reference
wenshao 24a28d5
refactor(status-line): redesign JSON input schema and add context fields
BZ-D c369538
fix(test): add missing metrics and model fields to Footer test mock
wenshao 520ed4e
fix: address audit findings across status-line and verbose-mode features
wenshao 0be4d32
Merge remote-tracking branch 'origin/main' into feature/status-line-c…
wenshao 55b1ab1
fix(status-line): derive remaining_percentage from used and reject em…
wenshao fc7ac2a
fix(statusline-setup): clarify agent prompt for script execution and …
wenshao 841eb3c
fix: address reviewer feedback — stdin error logging, JSON schema, i18n
wenshao 7804946
refactor(footer): inline status line in footer left section
wenshao a1c33cd
refactor(status-line): remove padding config
wenshao eaaa553
fix(footer): prevent status line from pushing right items off screen
wenshao f9b88c8
fix(footer): use wrap instead of truncate for status line text
wenshao cf879f0
refactor(footer): match upstream layout — status line + hints coexist
wenshao 50bf5cc
fix(footer): truncate hints/mode row to prevent extra lines
wenshao 63a14ae
fix(footer): remove Box wrapper from indicators for proper truncation
wenshao 2a28132
fix(footer): suppress hint when status line active, hide on exit prompts
wenshao bcd0b5e
docs: update status line documentation to reflect inline footer layout
wenshao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| /** | ||
| * @license | ||
| * Copyright 2025 Qwen | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| import type { SlashCommand, SubmitPromptActionReturn } from './types.js'; | ||
| import { CommandKind } from './types.js'; | ||
| import { t } from '../../i18n/index.js'; | ||
|
|
||
| export const statuslineCommand: SlashCommand = { | ||
| name: 'statusline', | ||
| get description() { | ||
| return t("Set up Qwen Code's status line UI"); | ||
wenshao marked this conversation as resolved.
Show resolved
Hide resolved
wenshao marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }, | ||
| kind: CommandKind.BUILT_IN, | ||
| action: (_context, args): SubmitPromptActionReturn => { | ||
| const prompt = | ||
| args.trim() || 'Configure my statusLine from my shell PS1 configuration'; | ||
| return { | ||
| type: 'submit_prompt', | ||
| content: [ | ||
| { | ||
| text: `Create an Agent with subagent_type "statusline-setup" and the following prompt:\n\n${prompt}`, | ||
wenshao marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| ], | ||
| }; | ||
| }, | ||
wenshao marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.