OpenAI: reduce repeated heartbeat alerts#65148
Conversation
Greptile SummaryThis PR softens the heartbeat guidance in the Confidence Score: 5/5Safe to merge — minimal, well-scoped prompt-text change with matching test coverage. The change is entirely contained to the heartbeat section of the OpenAI overlay constant and its test; no logic, routing, or contract surfaces are touched. All test assertions in both the updated and pre-existing test cases align with the current overlay text, and no P0/P1 issues were found. No files require special attention. Reviews (1): Last reviewed commit: "OpenAI: reduce repeated heartbeat alerts" | Re-trigger Greptile |
96884e3 to
4b3b3fd
Compare
This comment has been minimized.
This comment has been minimized.
🔒 Aisle Security AnalysisWe found 1 potential security issue(s) in this PR:
1. 🟠 Symlink-based file disclosure via unguarded HEARTBEAT.md read in heartbeat runner
DescriptionThe heartbeat runner reads
Vulnerable code: const heartbeatFilePath = path.join(workspaceDir, DEFAULT_HEARTBEAT_FILENAME);
heartbeatFileContent = await fs.readFile(heartbeatFilePath, "utf-8");RecommendationUse the existing boundary-safe file open/read helpers (the same pattern as For example: import syncFs from "node:fs";
import { openBoundaryFile } from "../infra/boundary-file-read.js";
const opened = await openBoundaryFile({
absolutePath: heartbeatFilePath,
rootPath: workspaceDir,
boundaryLabel: "workspace root",
maxBytes: 2 * 1024 * 1024,
});
if (opened.ok) {
try {
heartbeatFileContent = syncFs.readFileSync(opened.fd, "utf-8");
} finally {
syncFs.closeSync(opened.fd);
}
}Alternatively, refactor to call Analyzed PR: #65148 at commit Last updated on: 2026-04-12T21:21:37Z |
a6d236b to
fc1b56a
Compare
fc1b56a to
321176f
Compare
321176f to
728ced8
Compare
Summary
Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause (if applicable)
Regression Test Plan (if applicable)
extensions/openai/index.test.tsextensions/openai/index.test.tsUser-visible / Behavior Changes
Diagram (if applicable)
N/A
Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoYes, explain risk + mitigation:Repro + Verification
Environment
openai-codex/gpt-5.4Steps
Expected
Actual
Evidence
Attach at least one:
Human Verification (required)
pnpm test extensions/openai/index.test.tsafter rebasing onto latestorigin/main.Review Conversations
Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoRisks and Mitigations