Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(clients): reload provider sessions per thread without restarting T3 Code #6162

ClosedDavidIlie(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/6162/headopened View on GitHub

Showing 17 changed files with 110 additions and 3 deletions (loading 15).

x
0 of 17 viewed, 17 left
43 additions and 2 deletionsapps/mobile/src/features/threads/ThreadGitControls.tsxModified
View file
@@ -70,6 +70,7 @@
readonly terminal: HeaderItem;
readonly files: HeaderItem;
readonly git: HeaderItem;
+ readonly reloadSession: HeaderItem | null;
};
type QuickActionIcon =
| "arrow.down.circle"
@@ -104,6 +105,11 @@
readonly onOpenTerminal: (terminalId?: string | null) => void;
readonly onOpenNewTerminal: () => void;
readonly onRunProjectScript: (script: ProjectScript) => Promise<void>;
+ readonly reloadSessionControl?: {
+ readonly accessibilityLabel: string;
+ readonly disabled: boolean;
+ readonly onPress: () => void;
+ };
​
function useThreadGitControlModel(props: ThreadGitMenuProps) {
@@ -366,6 +372,19 @@
type: "menu",
variant: "plain",
+ reloadSession: props.reloadSessionControl
+ ? {
+ accessibilityLabel: props.reloadSessionControl.accessibilityLabel,
+ disabled: props.reloadSessionControl.disabled,