The best way to control Claude Code, Codex and more from any computer or phone
perf(web): GitHub token settings compile with the React Compiler (#20496)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 16, 2026 at 18:53 UTC
1c9e83e67b32c891f53f90827944983446df4111
2 files changed
+12
-14
apps/web/reactCompiledFiles.ts
+1
@@ -71,4 +71,5 @@ export const REACT_COMPILED_FILES = [
71
"apps/web/src/components/pullRequest/PullRequestReviewAnnotation.tsx",
72
"apps/web/src/components/pullRequest/PullRequestThreadLinks.tsx",
73
"apps/web/src/components/pullRequest/LinkPullRequestDialog.tsx",
74
+ "apps/web/src/components/settings/GitHubTokenSettings.tsx",
75
] as const;
apps/web/src/components/settings/GitHubTokenSettings.tsx
+11
-14
@@ -39,20 +39,17 @@ export function GitHubTokenSettings({
39
40
const save = async (target: string, token: string) => {
41
setSaving(true);
42
- try {
43
- const result = await updateSettings({
44
- environmentId,
45
- // The map travels whole: every other saved token as its redaction marker, which keeps it.
46
- input: {
47
- patch: { sourceControlHosts: { github: { tokens: { ...tokens, [target]: token } } } },
48
- },
49
- });
50
- if (result._tag === "Success") {
51
- setDraft("");
52
- onSaved();
53
- }
54
- } finally {
55
- setSaving(false);
42
+ const result = await updateSettings({
43
+ environmentId,
44
+ // The map travels whole: every other saved token as its redaction marker, which keeps it.
45
+ input: {
46
+ patch: { sourceControlHosts: { github: { tokens: { ...tokens, [target]: token } } } },
47
+ },
48
+ });
49
+ setSaving(false);
50
+ if (result._tag === "Success") {
51
+ setDraft("");
52
+ onSaved();
53
}
54
};
55