Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project>
<PropertyGroup>
<!-- GitHub.Copilot.SDK's DownloadFile timeout is interpreted in milliseconds. -->
<CopilotCliDownloadTimeout Condition="'$(CopilotCliDownloadTimeout)' == ''">600000</CopilotCliDownloadTimeout>
</PropertyGroup>
</Project>
6 changes: 6 additions & 0 deletions PolyPilot/Components/ChatMessageList.razor.css
Original file line number Diff line number Diff line change
Expand Up @@ -660,20 +660,26 @@

::deep .markdown-body code {
background: var(--control-border);
color: var(--text-bright);
border: 1px solid var(--border-subtle);
padding: 0.15em 0.3em;
border-radius: 3px;
font-size: 0.85em;
}

::deep .markdown-body pre {
background: var(--bg-tertiary);
color: var(--text-bright);
border: 1px solid var(--control-border);
padding: 0.75rem;
border-radius: 6px;
overflow-x: auto;
}

::deep .markdown-body pre code {
background: none;
color: inherit;
border: none;
padding: 0;
}

Expand Down
27 changes: 27 additions & 0 deletions PolyPilot/PolyPilot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,33 @@
SkipUnchangedFiles="true" />
</Target>

<!-- The SDK registers the intermediate copilot binary as ContentWithTargetPath.
On Mac Catalyst this surfaces as a publish metadata warning; we already copy
the binary explicitly via custom targets above. -->
<Target Name="_ExcludeCopilotCliIntermediateFromMacCatalystPublish"
AfterTargets="_RegisterCopilotCliForCopy"
Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst' And '$(_CopilotPlatform)' != ''">
<PropertyGroup>
<_CopilotCacheDir>$(IntermediateOutputPath)copilot-cli/$(CopilotCliVersion)/$(_CopilotPlatform)</_CopilotCacheDir>
</PropertyGroup>
<ItemGroup>
<ContentWithTargetPath Remove="$(_CopilotCacheDir)/$(_CopilotBinary)" />
<ContentWithTargetPath Remove="$(_CopilotCacheDir)\$(_CopilotBinary)" />
</ItemGroup>
</Target>

<Target Name="_ExcludeCopilotCliFromResolvedPublishForMacCatalyst"
BeforeTargets="_ComputePublishLocation"
Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst' And '$(_CopilotPlatform)' != ''">
<PropertyGroup>
<_CopilotCacheDir>$(IntermediateOutputPath)copilot-cli/$(CopilotCliVersion)/$(_CopilotPlatform)</_CopilotCacheDir>
</PropertyGroup>
<ItemGroup>
<ResolvedFileToPublish Remove="$(_CopilotCacheDir)/$(_CopilotBinary)" />
<ResolvedFileToPublish Remove="$(_CopilotCacheDir)\$(_CopilotBinary)" />
</ItemGroup>
</Target>

<!-- Ensure the copilot CLI binary is included in the Mac Catalyst .app bundle.
MAUI flattens everything into MonoBundle, so runtimes/ paths don't work.
Copy the binary directly into the .app bundle's MonoBundle. -->
Expand Down