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
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "openconduit",
"productName": "OpenConduit",
"version": "2.0.0-beta.6",
"version": "2.0.0-beta.7",
"description": "Cross-platform desktop AI chat client — OpenAI, Anthropic, LM Studio, and MCP tool servers",
"main": ".vite/build/main.js",
"private": true,
Expand Down Expand Up @@ -58,7 +58,7 @@
"@aws-sdk/client-bedrock-runtime": "^3.1053.0",
"@google/genai": "^2.3.0",
"@modelcontextprotocol/sdk": "^1.29.0",
"@openconduit/core": "^2.0.0-beta.5",
"@openconduit/core": "^2.0.0-beta.6",
"@sentry/electron": "^7.13.0",
"@types/pdf-parse": "^1.1.5",
"electron-squirrel-startup": "^1.0.1",
Expand Down
8 changes: 6 additions & 2 deletions packages/desktop/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,15 @@ app.on('ready', () => {
// directory. Intercept those requests and redirect to the correct path.
if (!MAIN_WINDOW_VITE_DEV_SERVER_URL) {
const assetDir = path.join(__dirname, `../renderer/${MAIN_WINDOW_VITE_NAME}`);
// Compute the correct URL once so we can exclude it from the redirect
// condition and avoid an infinite redirect loop (the target also ends with
// '/app-icon.png', which would re-trigger the handler on every redirect).
const appIconUrl = pathToFileURL(path.join(assetDir, 'app-icon.png')).href;
session.defaultSession.webRequest.onBeforeRequest(
{ urls: ['file://*'] },
(details, callback) => {
if (details.url.endsWith('/app-icon.png')) {
callback({ redirectURL: pathToFileURL(path.join(assetDir, 'app-icon.png')).href });
if (details.url.endsWith('/app-icon.png') && details.url !== appIconUrl) {
callback({ redirectURL: appIconUrl });
} else {
callback({});
}
Expand Down
Loading