feat: rename /directory to /workspace and unify terminology

Renames the /directory command to /workspace, adds aliases for backward compatibility, and updates UI strings, settings, and prompts to use 'workspace' terminology consistently.

Linked to #20737. Per Core/UX chat on 2/18.
This commit is contained in:
Keith Guerin
2026-03-01 00:21:56 -08:00
parent 703759cfae
commit 043a08807b
56 changed files with 581 additions and 451 deletions
@@ -72,7 +72,8 @@ export const NewAgentsNotification = ({
New Agents Discovered
</Text>
<Text color={theme.text.primary}>
The following agents were found in this project. Please review them:
The following agents were found in this workspace. Please review
them:
</Text>
<Box
flexDirection="column"
@@ -55,7 +55,7 @@ vi.mock('@google/gemini-cli-core', async (importOriginal) => {
const createConversation = (messages: MessageRecord[]): ConversationRecord => ({
sessionId: 'test-session',
projectHash: 'hash',
workspaceHash: 'hash',
startTime: new Date().toISOString(),
lastUpdated: new Date().toISOString(),
messages,
@@ -4,7 +4,7 @@ exports[`NewAgentsNotification > renders agent list 1`] = `
" ╭────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ New Agents Discovered │
│ The following agents were found in this project. Please review them:
│ The following agents were found in this workspace. Please review them: │
│ │
│ ┌────────────────────────────────────────────────────────────────────────────────────────────┐ │
│ │ │ │
@@ -24,7 +24,7 @@ exports[`NewAgentsNotification > truncates list if more than 5 agents 1`] = `
" ╭────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ New Agents Discovered │
│ The following agents were found in this project. Please review them:
│ The following agents were found in this workspace. Please review them: │
│ │
│ ┌────────────────────────────────────────────────────────────────────────────────────────────┐ │
│ │ │ │
@@ -172,12 +172,12 @@ export const TriageIssues = ({
async (issue: Issue): Promise<AnalysisResult> => {
const client = config.getBaseLlmClient();
const prompt = `
I am triaging GitHub issues for the Gemini CLI project. I need to identify issues that should be closed because they are:
I am triaging GitHub issues for the Gemini CLI workspace. I need to identify issues that should be closed because they are:
- Bogus (not a real issue/request)
- Not reproducible (insufficient info, "it doesn't work" without logs/details)
- Abusive or offensive
- Gibberish (nonsense text)
- Clearly out of scope for this project
- Clearly out of scope for this workspace
- Non-deterministic model output (e.g., "it gave me a wrong answer once", complaints about model quality without a reproducible test case)
<issue>