Direct X-ray detectors represent a transformative technology in the realm of radiography and imaging. The double halide-based perovskite cesium silver bismuth bromide (Cs 2 AgBiBr 6 ) has emerged as a promising material for use in direct X-ray imaging, owing to its nontoxic composition, strong X-ray absorption, decent charge mobility lifetime product (μτ), and low-cost preparation. However, formidable issues related to scalability and ion migration, stemming from intrinsic factors such as halogen vacancies and grain boundaries, have presented significant impediments. These issues have been associated with substantial noise, baseline instability, and a curtailment of detection performance. In response to these multifaceted challenges, we propose a slurry-based in situ treatment technique for fabricating robust Cs 2 AgBiBr 6 thick films. This novel approach adeptly mitigates halogen vacancies, actively passivates grain boundaries, and concurrently elevates the ion migration activation energy, thus effectively suppressing ion migration. Consequently, the obtained X-ray detector exhibits excellent operating stability with minimal signal drift of 8.5 × 10 −9 nA cm −1 s −1 V −1 and achieves a remarkable 385% increase in sensitivity with a limit of detection as low as 7.8 nGy air s −1 . These results mark a significant step toward the development of high-performance and long-lasting lead-free perovskite direct X-ray detectors.