fix(daemon): enableProject가 allowedProjects도 갱신 (INT-1973)#150
Merged
Conversation
…용 버그 (INT-1973) openswarm add(또는 대시보드 enable)로 repo 등록 + openswarm.json 매핑이 정확해도 데몬이 'No repo mapped … Skipping'으로 픽업 못 하던 버그(사용자: WAVE). 원인: enableProject()가 enabledProjects에만 add하고 config.allowedProjects는 미갱신. 그런데 resolveProjectPath는 allowedProjects 경로의 openswarm.json만 읽음 → enable됐지만 not-allowed인 repo는 매핑 파일을 안 읽어 resolve 실패. - autonomousRunner.enableProject: updateAllowedProjects로 config+DecisionEngine 동기화 (dedup). enable 게이트가 disabled를 막으므로 disableProject는 그대로. - projectHandler.ts: 거짓이던 주석을 실제 동작과 일치하게 정정. 테스트: enableProject 후 getAllowedProjects/getEnabledProjects 포함 + dedup. 전체 green. INT-1969 후속(사용자 보고).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
문제
openswarm add <repo>(또는 대시보드 enable) + openswarm.json 매핑이 정확해도 데몬이No repo mapped … Skipping으로 픽업 못 함(사용자: WAVE).원인
enableProject()가enabledProjects에만 add하고config.allowedProjects는 미갱신. 그런데resolveProjectPath는 allowedProjects 경로의 openswarm.json만 읽음 → enable됐지만 not-allowed인 repo는 매핑을 안 읽어 resolve 실패. (projectHandler 주석은 둘 다 머지된다고 했으나 거짓)수정
enableProject:updateAllowedProjects로 config+DecisionEngine 동기화(dedup). disableProject는 enable 게이트가 막으므로 불변.검증
enableProject 후 getAllowedProjects/getEnabledProjects 포함 + dedup. tsc/build clean, 전체 1162 green.