fix(routes): remove duplicate GET /api/sessions shadowing session_list() #17
Reference in New Issue
Block a user
Delete Branch "fix/sessions-route-dedup"
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?
Summary
route_sessions()function that searched engram forsession-start— a label never written by the currentsession_create(). This caused everyGET /api/sessionsrequest to return[], making the sidebar appear empty after a daemon restart.GET /api/sessionsif-block inhandle_requestthat calledroute_sessions(). The surviving handler (previously dead code) now calls the correctsession_list()fromsessions.el.DELETE /api/sessions/:idroute wired tosession_delete().PATCH /api/sessions/:idroute wired tosession_update_patch().Test plan
GET /api/sessionsreturns real sessions after daemon restartDELETE /api/sessions/:idremoves session from engramPATCH /api/sessions/:idupdates title and/or folderView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.