refactor: remove deprecated container.credentials_host_path compat branch #78
No reviewers
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!78
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/77"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #77.
Summary
Removes the backwards-compat code that accepted
container.credentials_host_path(a file path) in
agents.jsonand resolveddirname(...)to a directory.Every
agents.jsonentry onmainhas used the newcredentials_host_dirkey for a while; the compat branch was dead code on the happy path.
What changed
src/container.ts— drop@deprecateddefaultHostCredentialsPath().src/webhook-config.ts— drop thedirname(credentials_host_path)fallback inloadWebhookConfig. Config is now:credentials_host_dirif set → elsedefaultHostCredentialsDirPath().src/container.test.ts— drop tests for the removed function + import.src/webhook-config.test.ts— drop tests for thecredentials_host_pathbranch; update file-level comment.How this PR came to be — validation note for #76
This PR is the first end-to-end exercise of container mode for a
code agent (
devin container, task dispatched onissues.assigned).The container-mode pipeline all worked: worktree acquired inside the
container, file reads from the in-container path,
forgejo-mcpupdate_filecalls through the shim, commits pushed. What failed wasdev's own agent strategy on turn 52 — sending a full ~400-line file
payload via
update_filepushed the conversation past Sonnet's promptlimit (
Prompt is too long). Three of the four required edits hadalready landed cleanly; the fourth was completed by hand in the last
commit on this branch. Container-mode infrastructure validated for
dev; see #78 for the follow-up on agent strategy.Test plan
just qa— 241 tests (was 244; the 3 removed tests covered thedeleted compat branch).
just containers-rebuild— works with all 5 agents picking upcredentials_host_dir-only config.scripts/smoke-creds.sh— 28/28 probes green across all 5agents.
mcp__forgejo__update_filefor code edits (use Edit/Write + git CLI) #79