Expose PASEO_AGENT_ID to Claude and Codex agents (#143)

* Expose PASEO_AGENT_ID to managed agents

* refactor(server): make managed agent launch context explicit

* refactor(server): pass launch env through agent providers

* fix: use workspace-agnostic root tsconfig

* fix(server): align CI tests with current agent behavior

* fix(server): restore Claude history and sidechain CI coverage
This commit is contained in:
Mohamed Boudra
2026-03-24 15:02:15 +08:00
committed by GitHub
parent 77cdfbcb06
commit 7699d2fcbd
17 changed files with 503 additions and 295 deletions
+11 -14
View File
@@ -596,12 +596,8 @@ const x = 1;
" exit 0",
"fi",
'args="$*"',
'if [[ "$args" == *"state=open"* ]]; then',
' echo "[]"',
" exit 0",
"fi",
'if [[ "$args" == *"state=closed"* ]]; then',
' echo \'[{"html_url":"https://github.com/getpaseo/paseo/pull/123","title":"Ship feature","state":"closed","merged_at":"2026-02-18T00:00:00Z","base":{"ref":"main"},"head":{"ref":"feature"}}]\'',
'if [[ "$args" == "pr view --json url,title,state,baseRefName,headRefName,mergedAt" ]]; then',
' echo \'{"url":"https://github.com/getpaseo/paseo/pull/123","title":"Ship feature","state":"closed","baseRefName":"main","headRefName":"feature","mergedAt":"2026-02-18T00:00:00Z"}\'',
" exit 0",
"fi",
'echo "unexpected gh args: $args" >&2',
@@ -632,7 +628,7 @@ const x = 1;
}
});
it("does not treat closed-unmerged PRs as shipped status", async () => {
it("returns closed-unmerged PR status without marking it as merged", async () => {
execSync("git checkout -b feature", { cwd: repoDir });
execSync("git remote add origin https://github.com/getpaseo/paseo.git", { cwd: repoDir });
@@ -650,12 +646,8 @@ const x = 1;
" exit 0",
"fi",
'args="$*"',
'if [[ "$args" == *"state=open"* ]]; then',
' echo "[]"',
" exit 0",
"fi",
'if [[ "$args" == *"state=closed"* ]]; then',
' echo \'[{"html_url":"https://github.com/getpaseo/paseo/pull/999","title":"Closed without merge","state":"closed","merged_at":null,"base":{"ref":"main"},"head":{"ref":"feature"}}]\'',
'if [[ "$args" == "pr view --json url,title,state,baseRefName,headRefName,mergedAt" ]]; then',
' echo \'{"url":"https://github.com/getpaseo/paseo/pull/999","title":"Closed without merge","state":"closed","baseRefName":"main","headRefName":"feature","mergedAt":null}\'',
" exit 0",
"fi",
'echo "unexpected gh args: $args" >&2',
@@ -671,7 +663,12 @@ const x = 1;
try {
const status = await getPullRequestStatus(repoDir);
expect(status.githubFeaturesEnabled).toBe(true);
expect(status.status).toBeNull();
expect(status.status).not.toBeNull();
expect(status.status?.url).toContain("/pull/999");
expect(status.status?.baseRefName).toBe("main");
expect(status.status?.headRefName).toBe("feature");
expect(status.status?.isMerged).toBe(false);
expect(status.status?.state).toBe("closed");
} finally {
if (originalPath === undefined) {
delete process.env.PATH;