@@ -255,6 +255,7 @@ import {
255255import { isPeerDeviceModeActive } from '@/infrastructure/peer-device/peerModeFlag' ;
256256import { usePeerDeviceModeOptional } from '@/infrastructure/peer-device/peerDeviceContextState' ;
257257import { isBtwParentBackedSession , isBtwSessionDraft } from '../utils/modelSelectionTarget' ;
258+ import { shouldIncludeInternalSession } from '../utils/internalSession' ;
258259import { hasSessionStarted , isSessionBindingLocked } from '../utils/sessionLifecycle' ;
259260import {
260261 canTreatMissingPermissionModeAsDefault ,
@@ -1240,9 +1241,6 @@ export const ChatInput: React.FC<ChatInputProps> = ({
12401241 const sessionOwningId = effectiveTargetSession
12411242 ? sessionOwningWorkspaceId ( effectiveTargetSession )
12421243 : undefined ;
1243- const sessionOwningPath = effectiveTargetSession
1244- ? sessionProjectWorkspacePath ( effectiveTargetSession )
1245- : undefined ;
12461244 // Workspace record the input addresses, or the context workspace while no
12471245 // session exists yet. An empty string means the targeted session has no
12481246 // record; it must not fall back to the context.
@@ -2705,21 +2703,7 @@ export const ChatInput: React.FC<ChatInputProps> = ({
27052703 } , [
27062704 activePermissionTurnId ,
27072705 effectiveTargetSessionId ,
2708- sessionOwningId ,
2709- sessionOwningPath ,
2710- effectiveTargetSession ?. workspacePath ,
2711- effectiveTargetSession ?. dialogTurns ,
2712- effectiveTargetSession ?. historyState ,
2713- effectiveTargetSession ?. isHistorical ,
2714- effectiveTargetSession ?. persistedTurnCount ,
2715- effectiveTargetSession ?. remoteConnectionId ,
2716- effectiveTargetSession ?. remoteSshHost ,
2717- effectiveTargetSession ?. sessionKind ,
2718- effectiveTargetSession ?. agentBackedTransient ,
2719- effectiveTargetSession ?. parentSessionId ,
2720- effectiveTargetSession ?. draft ,
2721- effectiveTargetSession ?. externalHistory ,
2722- effectiveTargetSession ?. externalContinuationPermissionMode ,
2706+ effectiveTargetSession ,
27232707 isBtwDraftTarget ,
27242708 isBtwParentBackedTarget ,
27252709 isAcpTargetSession ,
@@ -2806,12 +2790,7 @@ export const ChatInput: React.FC<ChatInputProps> = ({
28062790 }
28072791 } , [
28082792 effectiveTargetSessionId ,
2809- sessionOwningId ,
2810- sessionOwningPath ,
2811- effectiveTargetSession ?. remoteConnectionId ,
2812- effectiveTargetSession ?. remoteSshHost ,
2813- effectiveTargetSession ?. sessionKind ,
2814- effectiveTargetSession ?. agentBackedTransient ,
2793+ effectiveTargetSession ,
28152794 activeTurnPermissionMode ,
28162795 sessionPermissionMode ,
28172796 t ,
@@ -2929,14 +2908,9 @@ export const ChatInput: React.FC<ChatInputProps> = ({
29292908 activeTurnPermissionMode ,
29302909 armedTurnPermissionMode ,
29312910 confirmFullAccessIfNeeded ,
2932- effectiveTargetSession ?. remoteConnectionId ,
2933- effectiveTargetSession ?. remoteSshHost ,
2934- effectiveTargetSession ?. sessionKind ,
2935- effectiveTargetSession ?. agentBackedTransient ,
2911+ effectiveTargetSession ,
29362912 effectiveTargetSessionId ,
29372913 isAcpTargetSession ,
2938- sessionOwningId ,
2939- sessionOwningPath ,
29402914 permissionModeSaving ,
29412915 t ,
29422916 ] ) ;
@@ -4817,7 +4791,9 @@ export const ChatInput: React.FC<ChatInputProps> = ({
48174791 ? {
48184792 sessionId : effectiveTargetSessionId ,
48194793 draft : ! ! effectiveTargetSession . draft ,
4794+ workspaceId : sessionOwningWorkspaceId ( effectiveTargetSession ) ,
48204795 workspacePath : sessionProjectWorkspacePath ( effectiveTargetSession ) ,
4796+ includeInternal : shouldIncludeInternalSession ( effectiveTargetSession ) ,
48214797 remoteConnectionId :
48224798 effectiveTargetSession . remoteConnectionId ||
48234799 effectiveTargetSession . config . remoteConnectionId ,
0 commit comments