@@ -89,6 +89,16 @@ const threadRef: ScopedThreadRef = {
8989} ;
9090const container = { width : 1200 , height : 800 } ;
9191const placement = { x : 908 , y : 0 , right : 12 , width : 280 , height : 400 } as const ;
92+ const linkedPullRequest : ThreadPullRequestLink = {
93+ host : "github.com" ,
94+ repository : "pingdotgg/t3code" ,
95+ number : 27513 ,
96+ url : "https://github.com/pingdotgg/t3code/pull/27513" ,
97+ source : "manual" ,
98+ linkedAt : "2026-10-30T00:00:00.000Z" ,
99+ snapshot : null ,
100+ stack : null ,
101+ } ;
92102
93103function setup ( input : {
94104 workspaceRoot : string ;
@@ -159,10 +169,14 @@ function Panel({ fixture }: { fixture: ReturnType<typeof setup> }) {
159169 ) ;
160170}
161171
162- it ( "offers no git controls in a No project thread" , async ( ) => {
163- using fixture = setup ( { workspaceRoot : SCRATCH_ROOT , folder : `${ SCRATCH_ROOT } /thread` } ) ;
172+ it ( "offers no git controls in a No project thread, but shows its linked pull request" , async ( ) => {
173+ using fixture = setup ( {
174+ workspaceRoot : SCRATCH_ROOT ,
175+ folder : `${ SCRATCH_ROOT } /thread` ,
176+ pullRequests : [ linkedPullRequest ] ,
177+ } ) ;
164178 await using _screen = await render ( < Panel fixture = { fixture } /> ) ;
165- await expect . element ( page . getByRole ( "region" , { name : "Workspace" } ) ) . toBeVisible ( ) ;
179+ await expect . element ( page . getByText ( "#27513" ) ) . toBeVisible ( ) ;
166180 await expect
167181 . element ( page . getByRole ( "button" , { name : "Initialize Git" } ) )
168182 . not . toBeInTheDocument ( ) ;
@@ -172,18 +186,7 @@ it("shows a linked pull request in a folder that is not a git repository", async
172186 using fixture = setup ( {
173187 workspaceRoot : "/work/plain" ,
174188 folder : "/work/plain" ,
175- pullRequests : [
176- {
177- host : "github.com" ,
178- repository : "pingdotgg/t3code" ,
179- number : 27513 ,
180- url : "https://github.com/pingdotgg/t3code/pull/27513" ,
181- source : "manual" ,
182- linkedAt : "2026-10-30T00:00:00.000Z" ,
183- snapshot : null ,
184- stack : null ,
185- } ,
186- ] ,
189+ pullRequests : [ linkedPullRequest ] ,
187190 } ) ;
188191 await using _screen = await render ( < Panel fixture = { fixture } /> ) ;
189192 await expect . element ( page . getByRole ( "region" , { name : "Workspace" } ) ) . toBeVisible ( ) ;
0 commit comments