Files
devstar/templates
hwy 3140e72711
All checks were successful
DevStar Studio CI/CD Pipeline / build-and-push-x86-64-docker-image (push) Successful in 8m13s
fix/bug-18 #18 devcontainer 及 WebTerminal 相关Bug (#20)
由于为了获取url,在轮询中调用了Get_IDE_TerminalURL
多次轮询时,部分请求的 RepoAssignment 中间件未正确设置 ctx.Repo.Repository
可能原因:权限检查失败、数据库查询慢、并发问题等
代码直接访问 ctx.Repo.Repository.ID 或传入 Get_IDE_TerminalURL,导致 nil pointer dereference panic
导致加载webtermnial失败

已添加 nil 检查,nil时不再调用Get_IDE_TerminalURL,避免 panic
同时添加缓存机制,避免频繁调用

Co-authored-by: mengning <mengning@mengning.com.cn>
Reviewed-on: #20
Co-authored-by: hwy <1093970372@qq.com>
Co-committed-by: hwy <1093970372@qq.com>
2025-12-14 11:38:23 +00:00
..
2025-08-17 02:31:14 +00:00