mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:31:43 +00:00
Fix initial context for Cody Web on the repository page (#63497)
Closes https://linear.app/sourcegraph/issue/SRCH-620/cody-web-has-incorrect-initial-context-on-blank-repository-page ## Test plan - Go to the repository root and open Cody Web, it should have only repository as the initial context
This commit is contained in:
parent
ea9c45df8f
commit
26c872cb77
@ -35,7 +35,7 @@ export const NewCodySidebarWebChat: FC<NewCodySidebarWebChatProps> = memo(functi
|
||||
const contextInfo = useMemo(
|
||||
() => ({
|
||||
repositories: [repository],
|
||||
fileURL: `/${filePath}`,
|
||||
fileURL: filePath ? `/${filePath}` : undefined,
|
||||
}),
|
||||
[repository, filePath]
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user