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
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,6 @@ function handleNotification(
const params = msg.params as { level?: string; message?: string };
if (!params?.message) return;
const level = params.level ?? "info";
// Cloud runs downgrade every console log to debug at the source, so this
// gate hides the entire stream unless the user flips the debug toggle.
if (level === "debug" && !options?.showDebugLogs) return;
if (!b.currentTurn) ensureImplicitTurn(b, ts);
pushItem(b, {
Expand Down
4 changes: 2 additions & 2 deletions packages/agent/src/handoff-checkpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export class HandoffCheckpointTracker {
checkpoint: GitHandoffCheckpoint,
uploads: Uploads,
): void {
this.logger.info("Captured handoff checkpoint", {
this.logger.debug("Captured handoff checkpoint", {
branch: checkpoint.branch,
head: checkpoint.head?.slice(0, 7),
totalBytes: this.sumRawBytes(uploads.pack, uploads.index),
Expand All @@ -312,7 +312,7 @@ export class HandoffCheckpointTracker {
_downloads: Downloads,
totalBytes: number,
): void {
this.logger.info("Applied handoff checkpoint", {
this.logger.debug("Applied handoff checkpoint", {
branch: checkpoint.branch,
head: checkpoint.head?.slice(0, 7),
totalBytes,
Expand Down
10 changes: 5 additions & 5 deletions packages/agent/src/server/agent-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ export class AgentServer {
switch (method) {
case POSTHOG_NOTIFICATIONS.USER_MESSAGE:
case "user_message": {
this.logger.info("Received user_message command", {
this.logger.debug("Received user_message command", {
hasContent:
typeof params.content === "string"
? params.content.trim().length > 0
Expand All @@ -608,7 +608,7 @@ export class AgentServer {
if (prompt.length === 0) {
throw new Error("User message cannot be empty");
}
this.logger.info("Built user_message prompt", {
this.logger.debug("Built user_message prompt", {
blockTypes: prompt.map((block) => block.type),
});
const promptPreview = promptBlocksToText(prompt);
Expand Down Expand Up @@ -718,7 +718,7 @@ export class AgentServer {
? params.mcpServers
: [];

this.logger.info("Refresh session requested", {
this.logger.debug("Refresh session requested", {
serverCount: mcpServers.length,
});

Expand Down Expand Up @@ -1191,7 +1191,7 @@ export class AgentServer {
this.resumeState.latestGitCheckpoint,
);
checkpointApplied = true;
this.logger.info("Git checkpoint applied", {
this.logger.debug("Git checkpoint applied", {
branch: this.resumeState.latestGitCheckpoint.branch,
head: this.resumeState.latestGitCheckpoint.head,
packBytes: metrics.packBytes,
Expand Down Expand Up @@ -1314,7 +1314,7 @@ export class AgentServer {
taskId: taskRun.task,
runId: taskRun.id,
});
this.logger.info("Built pending user prompt", {
this.logger.debug("Built pending user prompt", {
hasMessage: typeof message === "string" && message.trim().length > 0,
requestedArtifactCount: artifactIds.length,
blockTypes: prompt.map((block) => block.type),
Expand Down
Loading