Skip to content

Commit 693a890

Browse files
authored
Polish settings and project icon picker (#468)
- Fix settings deep-link for the projects section - Surface project icon file picker errors through the hook
1 parent c08361f commit 693a890

4 files changed

Lines changed: 24 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,22 @@ See [docs/releases/v0.25.0.md](docs/releases/v0.25.0.md) for full notes and [doc
3636
### Added
3737

3838
- Add project icon file picker.
39+
- Add file-content search to workspace results.
40+
- Add hot tamale theme fonts and tokens.
41+
- Add Claude Opus 4.7 model support.
3942

4043
### Changed
4144

4245
- Clarify OpenClaw gateway auth terminology.
4346
- Extract provider status refresh button.
4447
- Allow unsigned Windows artifacts when signing is unavailable.
48+
- Dock terminal below the right panel on desktop.
49+
- Remove stitch border setting from settings UI.
50+
51+
### Fixed
52+
53+
- Fix transport state snapshots in React hooks.
54+
- Fix settings deep-link for projects section.
4555

4656
## [0.24.0] - 2026-04-14
4757

apps/web/src/components/ChatView.logic.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ export function findLatestRevertableUserMessageId(
146146
return null;
147147
}
148148

149+
/**
150+
* Extension point for injecting hidden provider-level input alongside user
151+
* messages. Currently returns `undefined` — no hidden guidance is added.
152+
* The function signature is kept so the call sites and tests stay wired up;
153+
* future prompt-enhancement features will implement the body.
154+
*/
149155
export function buildHiddenProviderInput(options: {
150156
prompt: string;
151157
terminalContexts: ReadonlyArray<TerminalContextDraft>;

apps/web/src/hooks/useProjectIconFilePicker.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ import { useCallback, useRef, type ChangeEvent } from "react";
22

33
import { readFileAsDataUrl } from "~/lib/fileData";
44

5-
export function useProjectIconFilePicker(options: { onFileSelected: (dataUrl: string) => void }) {
5+
export function useProjectIconFilePicker(options: {
6+
onFileSelected: (dataUrl: string) => void;
7+
onError?: (error: unknown) => void;
8+
}) {
69
const fileInputRef = useRef<HTMLInputElement>(null);
7-
const { onFileSelected } = options;
10+
const { onFileSelected, onError } = options;
811

912
const openFilePicker = useCallback(() => {
1013
fileInputRef.current?.click();
@@ -22,10 +25,10 @@ export function useProjectIconFilePicker(options: { onFileSelected: (dataUrl: st
2225
const dataUrl = await readFileAsDataUrl(file);
2326
onFileSelected(dataUrl);
2427
} catch (error) {
25-
console.error("Failed to read project icon image:", error);
28+
onError?.(error);
2629
}
2730
},
28-
[onFileSelected],
31+
[onFileSelected, onError],
2932
);
3033

3134
return {

apps/web/src/routes/_chat.settings.index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2142,6 +2142,7 @@ export const Route = createFileRoute("/_chat/settings/")({
21422142
section === "authentication" ||
21432143
section === "hotkeys" ||
21442144
section === "environment" ||
2145+
section === "projects" ||
21452146
section === "git" ||
21462147
section === "models" ||
21472148
section === "mobile" ||

0 commit comments

Comments
 (0)