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
9 changes: 0 additions & 9 deletions apps/desktop/src/main/lib/notifications/server.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { EventEmitter } from "node:events";
import express from "express";
import { NOTIFICATION_EVENTS } from "shared/constants";
import { debugLog } from "shared/debug";
import { env } from "shared/env.shared";
import type { AgentLifecycleEvent } from "shared/notification-types";
import { appState } from "../app-state";
Expand Down Expand Up @@ -145,14 +144,6 @@ app.get("/hook/complete", (req, res) => {

const mappedEventType = mapEventType(eventType as string | undefined);

debugLog("notifications", "Received hook:", {
eventType,
mappedEventType,
paneId,
tabId,
workspaceId,
});

// Unknown or missing eventType: return success but don't process
// This ensures forward compatibility and doesn't block the agent
if (!mappedEventType) {
Expand Down
4 changes: 4 additions & 0 deletions apps/desktop/src/main/lib/terminal/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ const ALLOWED_ENV_VARS = new Set([
"LC_TIME",
"TZ",

// Shell initialization (required for agent wrapper PATH injection)
"ZDOTDIR", // zsh config directory - used to source our wrapper
"BASH_ENV", // bash startup file - used for non-interactive shells

// Terminal/display
"DISPLAY",
"COLORTERM",
Expand Down
7 changes: 0 additions & 7 deletions apps/desktop/src/renderer/stores/tabs/useAgentHookListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ export function useAgentHookListener() {
const { paneId, workspaceId } = target;

if (event.type === NOTIFICATION_EVENTS.AGENT_LIFECYCLE) {
debugLog("agent-hooks", "Received:", {
eventType: event.data?.eventType,
paneId,
workspaceId,
currentWorkspace: currentWorkspaceIdRef.current,
});

if (!paneId) return;

const lifecycleEvent = event.data;
Expand Down
Loading