Simplify working directory placeholder and empty state messaging

This commit is contained in:
Mohamed Boudra
2026-02-19 12:59:48 +07:00
parent 7bda40bd4e
commit ff0be38cff
2 changed files with 4 additions and 6 deletions
@@ -862,16 +862,14 @@ export function WorkingDirectoryDropdown({
const handleOpen = useCallback(() => setIsOpen(true), []);
const handleOpenChange = useCallback((open: boolean) => setIsOpen(open), []);
const emptyText = suggestedPaths.length > 0
? "No agent directories match your search."
: "We'll suggest directories from agents on this host once they exist.";
const emptyText = "No agent directories match your search.";
return (
<>
<SelectField
label="WORKING DIRECTORY"
value={workingDir}
placeholder="/path/to/project"
placeholder="Choose a working directory"
onPress={handleOpen}
disabled={disabled}
errorMessage={errorMessage || undefined}
@@ -758,7 +758,7 @@ function DraftAgentScreenContent({
return agentWorkingDirSuggestions.length > 0
? 'No agent directories match your search.'
: "We'll suggest directories from agents on this host once they exist."
: 'No agent directories match your search.'
}, [agentWorkingDirSuggestions.length, hasWorkingDirectorySearch, workingDirSearchError])
const displayWorkingDir = shortenPath(workingDir)
const worktreeTriggerValue =
@@ -1167,7 +1167,7 @@ function DraftAgentScreenContent({
containerStyle={styles.fullSelector}
label="Working directory"
value={displayWorkingDir}
placeholder="/path/to/project"
placeholder="Choose a working directory"
onPress={() => setIsWorkingDirOpen(true)}
icon={<Folder size={theme.iconSize.md} color={theme.colors.foregroundMuted} />}
showLabel={false}