test(ui): pin who may record an explicit Default effort
Nothing covered ModelControls, which is where the effort restore decides between "the user chose Default" and "nothing was found". Three cases: a concrete effort in the session history is restored, history without an effort records no choice, and a preserved manual override keeps a recorded Default. The middle one fails on the previous commit's parent — it recorded `null` and then `undefined` for the same restore. Also drops the `fetchAll` binding GitView stopped using when the post-bootstrap refresh moved to a forced `fetchStatus`; it was failing `bun run lint:ui`. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EZuVVgziiLjD81W5vaxdH2
This commit is contained in:
co-authored by
Claude Opus 5
parent
025cd3d46c
commit
4dfbb5bd1c
@@ -292,7 +292,6 @@ export const GitView: React.FC<GitViewProps> = ({ isActive }) => {
|
||||
const isLogLoading = useGitLoadingLog(gitDirectory ?? null);
|
||||
const {
|
||||
setActiveDirectory,
|
||||
fetchAll,
|
||||
ensureAll,
|
||||
fetchStatus,
|
||||
fetchBranches,
|
||||
@@ -308,7 +307,6 @@ export const GitView: React.FC<GitViewProps> = ({ isActive }) => {
|
||||
selectNestedRepo,
|
||||
} = useGitStore(useShallow((state) => ({
|
||||
setActiveDirectory: state.setActiveDirectory,
|
||||
fetchAll: state.fetchAll,
|
||||
ensureAll: state.ensureAll,
|
||||
fetchStatus: state.fetchStatus,
|
||||
fetchBranches: state.fetchBranches,
|
||||
|
||||
Reference in New Issue
Block a user