These five command handlers were lost during parallel merges of the Telegram
workers. The Router fields they need (Identity, Models, Sessions, Agents)
already exist; the handlers and their Route cases do not.
18 tests in internal/gateway/gateway_test.go already specify the exact
behaviour. They are currently failing. Run them and make them pass:
ONLY internal/gateway/. Do not touch any other package.
Read the tests first; they define the exact reply text fragments expected
("not configured", "No sessions", "Usage", etc). Do not invent wording.
Follow the shape of the existing handlers in gateway.go and
session_commands.go: handleX methods on *Router returning (string, error).
A nil dependency means "not configured" and returns a reply, not an error.
A dependency that returns an error must propagate it (see TestRouteSessionsError).
Add the new commands to the Route switch and to LocalCommands.
Constraints:
Do NOT add //nolint or otherwise suppress lint findings. Fix issues properly.
Do NOT write architecture docs, ledgers, plans or new beads. Just the code.
Do NOT modify the tests to make them pass. The tests are correct.
Done when: go build ./... , go vet ./... , gofmt -l . clean, and
go test ./internal/gateway/... passes with zero failures.
Imported from beads archie-core-1786637500274-400-88879bb2 · GitHub #421 · type task · priority P2 · created 2026-08-08 · closed 2026-08-08
These five command handlers were lost during parallel merges of the Telegram
workers. The Router fields they need (Identity, Models, Sessions, Agents)
already exist; the handlers and their Route cases do not.
18 tests in internal/gateway/gateway_test.go already specify the exact
behaviour. They are currently failing. Run them and make them pass:
go test ./internal/gateway/...
Failing: TestRouteWhoami, TestRouteWhoamiNoIdentity, TestRouteWhoamiWithModel,
TestRouteProfile, TestRouteProfileNoIdentity, TestRouteSessionsEmpty,
TestRouteSessionsNotConfigured, TestRouteSessionsError, TestRouteResumeNoArg,
TestRouteResumeNotConfigured, TestRouteResumeNoMatch, TestRouteResumeAmbiguous,
TestRouteResumeExactMatch, TestRouteAgentsEmpty, TestRouteAgentsNotConfigured,
TestRouteAgentsWithTasks, TestRouteAgentsError, TestLocalCommandsIncludesNewCommands
Scope:
- ONLY internal/gateway/. Do not touch any other package.
- Read the tests first; they define the exact reply text fragments expected
("not configured", "No sessions", "Usage", etc). Do not invent wording.
- Follow the shape of the existing handlers in gateway.go and
session_commands.go: handleX methods on *Router returning (string, error).
- A nil dependency means "not configured" and returns a reply, not an error.
A dependency that returns an error must propagate it (see TestRouteSessionsError).
- Add the new commands to the Route switch and to LocalCommands.
Constraints:
- Do NOT add //nolint or otherwise suppress lint findings. Fix issues properly.
- Do NOT write architecture docs, ledgers, plans or new beads. Just the code.
- Do NOT modify the tests to make them pass. The tests are correct.
Done when: go build ./... , go vet ./... , gofmt -l . clean, and
go test ./internal/gateway/... passes with zero failures.
---
_Imported from beads `archie-core-1786637500274-400-88879bb2` · GitHub #421 · type task · priority P2 · created 2026-08-08 · closed 2026-08-08_
sam
added the mediumtask labels 2026-10-27 13:38:19 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
These five command handlers were lost during parallel merges of the Telegram
workers. The Router fields they need (Identity, Models, Sessions, Agents)
already exist; the handlers and their Route cases do not.
18 tests in internal/gateway/gateway_test.go already specify the exact
behaviour. They are currently failing. Run them and make them pass:
go test ./internal/gateway/...
Failing: TestRouteWhoami, TestRouteWhoamiNoIdentity, TestRouteWhoamiWithModel,
TestRouteProfile, TestRouteProfileNoIdentity, TestRouteSessionsEmpty,
TestRouteSessionsNotConfigured, TestRouteSessionsError, TestRouteResumeNoArg,
TestRouteResumeNotConfigured, TestRouteResumeNoMatch, TestRouteResumeAmbiguous,
TestRouteResumeExactMatch, TestRouteAgentsEmpty, TestRouteAgentsNotConfigured,
TestRouteAgentsWithTasks, TestRouteAgentsError, TestLocalCommandsIncludesNewCommands
Scope:
("not configured", "No sessions", "Usage", etc). Do not invent wording.
session_commands.go: handleX methods on *Router returning (string, error).
A dependency that returns an error must propagate it (see TestRouteSessionsError).
Constraints:
Done when: go build ./... , go vet ./... , gofmt -l . clean, and
go test ./internal/gateway/... passes with zero failures.
Imported from beads
archie-core-1786637500274-400-88879bb2· GitHub #421 · type task · priority P2 · created 2026-08-08 · closed 2026-08-08