Skip to content

Conversation

@jonathanlab
Copy link
Contributor

@jonathanlab jonathanlab commented Dec 12, 2025

Session store and all related types were an absolute mess. I refactored it so we now only use ACP types directly, so I can actually work on improving session rendering. Also updated our knip config.

Copy link
Contributor Author

jonathanlab commented Dec 12, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@wiz-7ad640923b
Copy link

wiz-7ad640923b bot commented Dec 12, 2025

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities 1 High 3 Medium 1 Low
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings -
Software Supply Chain Finding Software Supply Chain Findings -
Total 1 High 3 Medium 1 Low

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

@jonathanlab jonathanlab marked this pull request as ready for review December 12, 2025 15:27
@jonathanlab jonathanlab requested a review from a team as a code owner December 12, 2025 15:27
Copy link
Contributor

@joshsny joshsny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - left some nits, none of them blocking

.filter(({ event }) =>
JSON.stringify(event).toLowerCase().includes(query),
);
}, [events, searchQuery]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's annoying we do this stuff for all events on every new event, would be nicer to do this stuff in a store somewhere, but not a big deal so lets just leave it

);
}, [events, searchQuery]);

const copyToClipboard = useCallback((text: string) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: does this need a useCallback

events,
isPromptPending,
}: ConversationViewProps) {
const turns = useMemo(() => buildTurns(events), [events]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this too, I think all this logic should be in zustand but its not a big issue

taskId ? state.getSessionForTask(taskId) : undefined,
);
const { setSessionModel } = useSessionActions();
const session = useSessionForTask(taskId ?? "");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens if we pass "" here?


export function useKeyboardShortcut(
key: string,
callback: () => void,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will always need to be a useCallback to avoid the effect from registering and unregistering the event listener on every render

@jonathanlab jonathanlab force-pushed the 12-12-refactor_sessions branch from b2c1284 to 69fbd7a Compare December 15, 2025 12:11
Copy link
Contributor Author

jonathanlab commented Dec 15, 2025

Merge activity

  • Dec 15, 12:24 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 15, 12:24 PM UTC: @jonathanlab merged this pull request with Graphite.

@jonathanlab jonathanlab merged commit 70dce2c into main Dec 15, 2025
11 checks passed
@jonathanlab jonathanlab deleted the 12-12-refactor_sessions branch December 15, 2025 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants