Skip to content

Commit 12c90f9

Browse files
ralyodioclaude
andcommitted
desktop: open the feed on startup via a fixed-id extension URL (v0.2.12)
chrome://newtab/ from the command line shows Chromium's DEFAULT new-tab page — the chrome_url_overrides newtab only applies to UI-created tabs — so the feed never showed on a fresh launch (blank/default NTP with bookmarks+history). Pin the extension id with a manifest "key" and open chrome-extension://blkabajacljkbmjnffffobbnoipcckah/newtab.html when the launcher gets no URL. (Local settings re-sync from the account on the stable id.) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 83fc522 commit 12c90f9

4 files changed

Lines changed: 19 additions & 8 deletions

File tree

apps/desktop/extensions/ai-sidebar/manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"manifest_version": 3,
33
"name": "TronBrowser",
4-
"version": "0.2.11",
4+
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtiZowpoE0HPpGEHjHLb1jsfa/G49HQGizDxZDbUbuIle96BxBD0KWZ54u1bMFgHi3RxYrmmMmhvvRfV3z6FSfTDlZjB7ydrkcrx4wFXLp9gWd/ec3VuNFy+qgob9Hmn77AH7NV58tf3G2u92vi3FA0b+Jte9+ZzuhabX5sseJY5IPvgL1ZdIALTVqb6dGdEz6O/yaID7BOusDbmewgDY2jANDZtiazL48oWiARM0TRNAvtvl3nWIK4dIVHnYOXdyGixKSr1lc/e8HkSoGkLp5O9zP9DT0DYPwSg/EZjlfoC1NDlwVNgxX0tw2r6BIiiXrhaUFfdUap5Jm6k582z1ZQIDAQAB",
5+
"version": "0.2.12",
56
"description": "TronBrowser — privacy-first, AI-native. Branded new tab, private search, CoinPay login, and a bring-your-own-keys AI sidebar.",
67
"icons": {
78
"16": "icons/icon-16.png",

apps/desktop/launcher/tronbrowser

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,15 @@ FLAGS="--user-data-dir=$DATA --class=TronBrowser --no-first-run --no-default-bro
175175
LOG="${TRONBROWSER_LOG:-$DATA/tron.log}"
176176
FLAGS="$FLAGS --log-level=2"
177177

178+
# On a fresh launch with no URL, open the TronBrowser feed (the ai-sidebar new-tab
179+
# page) instead of a blank/default page. chrome://newtab/ shows Chromium's DEFAULT
180+
# NTP from the command line — the chrome_url_overrides newtab only applies to
181+
# UI-created tabs — so open the extension's page directly. The ID is fixed by the
182+
# manifest "key" (blkabajacljkbmjnffffobbnoipcckah).
183+
if [ "$#" -eq 0 ]; then
184+
set -- "chrome-extension://blkabajacljkbmjnffffobbnoipcckah/newtab.html"
185+
fi
186+
178187
if [ -n "$MAC_APP" ]; then
179188
# macOS: launch the .app via LaunchServices (`open`). Running the inner binary
180189
# directly SIGABRTs, and `-n` gives a separate instance from any running

apps/desktop/src/launcher.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('resolveStartUrls', () => {
1515
]);
1616
});
1717

18-
it('defaults to the extension-overridden new tab page', () => {
19-
expect(DEFAULT_START_URL).toBe('chrome://newtab/');
18+
it('defaults to the ai-sidebar new-tab feed (fixed extension id)', () => {
19+
expect(DEFAULT_START_URL).toBe('chrome-extension://blkabajacljkbmjnffffobbnoipcckah/newtab.html');
2020
});
2121
});

apps/desktop/src/launcher.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ export interface LaunchConfig extends LaunchOptions {
1616
}
1717

1818
/**
19-
* The page shown on a fresh launch when no URLs are given: the extension-
20-
* overridden New Tab page (the TronBrowser feed). Without an explicit startup
21-
* URL, Chromium opens a blank/default page, so the `chrome_url_overrides` newtab
22-
* feed only appears once the user opens a *new* tab — we open it on startup.
19+
* The page shown on a fresh launch when no URLs are given: the TronBrowser feed
20+
* (the ai-sidebar new-tab page). chrome://newtab/ from the command line shows
21+
* Chromium's DEFAULT NTP — the `chrome_url_overrides` newtab override only applies
22+
* to UI-created tabs — so we open the extension's page directly. The extension ID
23+
* is fixed by the manifest "key".
2324
*/
24-
export const DEFAULT_START_URL = 'chrome://newtab/';
25+
export const DEFAULT_START_URL = 'chrome-extension://blkabajacljkbmjnffffobbnoipcckah/newtab.html';
2526

2627
/** Resolves the URLs to open, defaulting to the feed when none are supplied. */
2728
export function resolveStartUrls(urls?: string[]): string[] {

0 commit comments

Comments
 (0)