mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
Show Command Center shortcuts that match focus and input (#64025)
## Why The Command Center can show action shortcuts while the conversation has keyboard focus or while a search or rename field consumes those keys. ## What changed Use the shared footer renderer to show a focus shortcut in the unfocused Command Center and action hints when it has focus. Keep the editor cursor in the active pane and hide header shortcuts when their actions are unavailable. For example, the default `g` grouping hint disappears while typing a search because `g` goes into the query. ## Testing Extend the workspace navigation test to check the focus hint and cover custom accept and grouping bindings during search and rename. GitOrigin-RevId: a96a093b77b6ef04d717b542e30b041164d1210c
This commit is contained in:
@@ -518,10 +518,10 @@ async fn daemon_startup(command: &str) -> Result<()> {
|
||||
&& text.contains(ready)
|
||||
{
|
||||
if command == "agents-untrusted" && *ready == "Notasksyet" {
|
||||
if !text.contains("enteropennnew") {
|
||||
initial_agents_screen = screen.screen().contents();
|
||||
if !initial_agents_screen.contains("n new") {
|
||||
continue;
|
||||
}
|
||||
initial_agents_screen = screen.screen().contents();
|
||||
}
|
||||
if command == "discovered" {
|
||||
if *ready == "Restartbackgroundserver?" {
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ expression: transition
|
||||
│
|
||||
│
|
||||
│
|
||||
? help ↑/↓ move enter open n new
|
||||
? help · ↑/↓ move · enter open · n new
|
||||
|
||||
--- Start a task ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user