Wrap file tree context functions in useCallback GitOrigin-RevId: 86fbaf4f168bbe31f474bdea38d2cd09b69c950f