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
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ <h2 class="modal-title">Terminal Settings</h2>
<span class="text-xs text-gray-400 mt-1 block">Directory where session worktrees will be stored</span>
</div>

<div class="text-center text-xs text-gray-500 mt-6 pt-4 border-t border-gray-700">
<span id="app-version">FleetCode v...</span>
</div>

<div class="btn-group">
<button id="cancel-settings" class="btn-secondary">Cancel</button>
<button id="reset-settings" class="btn-secondary">Reset to Default</button>
Expand Down
5 changes: 5 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,11 @@ ipcMain.handle("save-terminal-settings", (_event, settings: any) => {
(store as any).set("terminalSettings", settings);
});

// Get app version
ipcMain.handle("get-app-version", () => {
return app.getVersion();
});

// MCP Server management functions
async function listMcpServers() {
try {
Expand Down
10 changes: 9 additions & 1 deletion renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1450,8 +1450,16 @@ function applySettingsToAllTerminals() {
}

// Open settings modal
openSettingsBtn?.addEventListener("click", () => {
openSettingsBtn?.addEventListener("click", async () => {
populateSettingsForm();

// Load and display app version
const version = await ipcRenderer.invoke("get-app-version");
const versionElement = document.getElementById("app-version");
if (versionElement) {
versionElement.textContent = `FleetCode v${version}`;
}

settingsModal?.classList.remove("hidden");
});

Expand Down